diff options
-rw-r--r-- | src/snakeoil/cli/arghparse.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/snakeoil/cli/arghparse.py b/src/snakeoil/cli/arghparse.py index 09eaed3..375ffe4 100644 --- a/src/snakeoil/cli/arghparse.py +++ b/src/snakeoil/cli/arghparse.py @@ -556,6 +556,8 @@ class CsvHelpFormatter(argparse.HelpFormatter): result = "%s[,-%s,...]" % get_metavar(2) elif isinstance(action, (CommaSeparatedElements, CommaSeparatedElementsAppend)): result = "%s[,-%s,+%s...]" % get_metavar(3) + elif isinstance(action, Delayed): + result = self._format_args(action.target, default_metavar) else: result = super()._format_args(action, default_metavar) return result |