Skip to content

Commit

Permalink
fix: help printing by default
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed Jan 18, 2024
1 parent e87b985 commit 7cd5ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func main() {
config.Margin = expandMargin(config.Margin)
config.Padding = expandPadding(config.Padding)

if config.Input == "" && !in.IsPipe(os.Stdin) && len(ctx.Flags()) <= 0 {
if config.Input == "" && !in.IsPipe(os.Stdin) && len(ctx.Args) <= 0 {
_ = helpPrinter(kong.HelpOptions{}, ctx)
os.Exit(0)
}
Expand Down

0 comments on commit 7cd5ae1

Please sign in to comment.