-
Notifications
You must be signed in to change notification settings - Fork 557
Default values for optional positional arguments #214
Copy link
Copy link
Open
Description
In the following:
Usage:
block_lines (rep|exp) [options] [INPUT-FILE [OUTPUT-FILE]]
block_lines gen [options] [OUTPUT-FILE]
block_lines (-h|--help|--version)
Modes:
rep Find the repeated blocks of lines.
exp Expand the output from rep.
gen (Random gen of output suitable for example rep mode processing).
Options:
-h --help Show this screen.
-v --version Show version.
-w N, --width N Digits in field for repetition count [default: 4].
-d --debug Debug:
* In rep mode remove anything after '#' on all input lines.
* In gen mode annotate with repeat counts after '#'.
I/O Defaults:
INPUT-FILE Defaults to stdin.
OUTPUT-FILE Defaults to stdout.
I would like to specify default values for INPUT-FILE and OUTPUT-FILE but instead have to look for None values and replace them with defaults manually,
Is there a better way?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels