Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show the actual available flags in useline #2105

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Feb 1, 2024

  1. 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`.
    lugray committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    9867fb6 View commit details
    Browse the repository at this point in the history