refactor(cli): replace positional input argument with --input / -i flag

This commit is contained in:
Jef Roosens 2026-05-22 10:34:53 +02:00
parent ecdd28e8a3
commit 715e0988dc
Signed by: Jef Roosens
GPG key ID: 119385BCAA005C21
3 changed files with 9 additions and 8 deletions

View file

@ -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",