-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show the actual available flags in useline
Use common useline notation for available flags: - `[-f foo]` for (standard) optional flags - `[-f foo | -b bar]` for mutually exclusive flags - `-f foo` for required flags - `{-f foo | -b bar}` for mutually exclusive flags where one is required - `[-f foo -b bar]` for flags required as a group For a boolean flag `f`, ` foo` is dropped from the above. The foo/bar comes from `flag.UnquoteUsage`.
- Loading branch information
Showing
2 changed files
with
170 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters