Skip to content

Commit

Permalink
fix: display help if no args provided
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong authored and jondot committed May 12, 2024
1 parent 30871f3 commit 41017c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ var (

//nolint
func main() {
//print help if no command given
if len(os.Args) < 2 {
os.Args = append(os.Args, "--help")
}
ctx := kong.Parse(&CLI)

logger := logging.GetRoot()
Expand Down

0 comments on commit 41017c5

Please sign in to comment.