urfave / cli

A simple, fast, and fun package for building command line apps in Go
https://cli.urfave.org
MIT License
21.91k stars 1.69k forks source link

Feat:(issue_1797) Add Args for app/cmd/subcmd to avoid argument... be… #1829

Closed dearchap closed 6 months ago

dearchap commented 7 months ago

…ing printed

What type of PR is this?

(REQUIRED)

What this PR does / why we need it:

(REQUIRED)

This allows command to specify that it does not expect any arguments so that its help section will not show [arguments...]

Which issue(s) this PR fixes:

(REQUIRED)

Fixes #1797

Testing

(fill-in or delete this section)

Update existing tests to make sure they pass

Release Notes

(REQUIRED)

Commands can specify if they expect arguments. If they dont expect arguments the help section for the command will not show [arguments...] as it did previously
dolmen commented 6 months ago

Please, take more care in filling the PR template.

dearchap commented 6 months ago

@abitrolly Can you review and comment . I'd like to close this out.