refactor(cli): replace positional input argument with --input / -i flag
This commit is contained in:
parent
ecdd28e8a3
commit
715e0988dc
3 changed files with 9 additions and 8 deletions
|
|
@ -16,9 +16,10 @@ def build_parser() -> argparse.ArgumentParser:
|
|||
|
||||
source = parser.add_mutually_exclusive_group(required=True)
|
||||
source.add_argument(
|
||||
"input",
|
||||
nargs="?",
|
||||
"--input",
|
||||
"-i",
|
||||
help="Path to the markdown file containing the timesheet table, or '-' to read from stdin.",
|
||||
default=None,
|
||||
)
|
||||
source.add_argument(
|
||||
"--joplin",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue