We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a69c119 commit e05c2ccCopy full SHA for e05c2cc
utils/build_swift/argparse/actions.py
@@ -76,8 +76,10 @@ def __init__(self,
76
dests = dests or dest
77
if dests == argparse.SUPPRESS:
78
dests = []
79
+ metavar = metavar or ''
80
elif isinstance(dests, str):
81
dests = [dests]
82
+ metavar = metavar or dests[0].upper()
83
84
super(Action, self).__init__(
85
option_strings=option_strings,
@@ -242,6 +244,7 @@ class StorePathAction(StoreAction):
242
244
def __init__(self, option_strings, **kwargs):
243
245
kwargs['nargs'] = Nargs.SINGLE
246
kwargs['type'] = PathType()
247
+ kwargs.setdefault('metavar', 'PATH')
248
249
super(StorePathAction, self).__init__(
250
0 commit comments