Skip to content

Commit

Permalink
change: [cli] utilize metavar instead of actual choices
Browse files Browse the repository at this point in the history
utilize metavar instead of candidate values to shorten help text.
  • Loading branch information
ssato committed Jul 1, 2018
1 parent ec9ba54 commit d3d036a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions anyconfig/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,14 @@ def make_parser(defaults=None):
gspog.add_argument("--set", help=_SET_HELP)

parser.add_argument("-o", "--output", help="Output file path")
parser.add_argument("-I", "--itype", choices=ctypes,
parser.add_argument("-I", "--itype", choices=ctypes, metavar="ITYPE",
help=(type_help % "Input"))
parser.add_argument("-O", "--otype", choices=ctypes,
parser.add_argument("-O", "--otype", choices=ctypes, metavar="OTYPE",
help=(type_help % "Output"))
parser.add_argument("-M", "--merge", choices=mts, help=mt_help)
parser.add_argument("-M", "--merge", choices=mts, metavar="MERGE",
help=mt_help)
parser.add_argument("-A", "--args", help="Argument configs to override")
parser.add_argument("--atype", choices=ctypes,
parser.add_argument("--atype", choices=ctypes, metavar="ATYPE",
help=_ATYPE_HELP_FMT % ctypes_s)

cpog = parser.add_argument_group("Common options")
Expand Down

0 comments on commit d3d036a

Please sign in to comment.