Skip to content

--help option duplication in phino rewrite command output #240

@yegor256

Description

@yegor256

See:

$ phino rewrite --help
Usage: phino rewrite [--log-level LEVEL] [--rule FILE] [--input FORMAT]
                     [--output FORMAT] [--sweet] [--normalize] [--nothing]
                     [--shuffle] [--omit-listing] [--omit-comments]
                     [--max-depth DEPTH] [FILE]

  Rewrite the program

Available options:
  --log-level LEVEL        Log level (DEBUG, INFO, WARNING, ERROR, NONE)
                           (default: INFO)
  --rule FILE              Path to custom rule
  --input FORMAT           Program input format (phi, xmir) (default: phi)
  --output FORMAT          Program output format (phi, xmir) (default: phi)
  --sweet                  Print 𝜑-program using syntax sugar
  --normalize              Use built-in normalization rules
  --nothing                Just desugar provided 𝜑-program
  --shuffle                Shuffle rules before applying
  --omit-listing           Omit full program listing in XMIR output
  --omit-comments          Omit comments in XMIR output
  --max-depth DEPTH        Max amount of rewritng cycles (default: 25)
  FILE                     Path to input file
  -h,--help                Show this help text
  -h,--help                Show this help text

At the bottom, I see the last line duplicated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions