diff options
Diffstat (limited to 'todo/arguments.py')
-rw-r--r-- | todo/arguments.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/todo/arguments.py b/todo/arguments.py new file mode 100644 index 0000000..bb60dce --- /dev/null +++ b/todo/arguments.py @@ -0,0 +1,13 @@ +import argparse + +def parser() -> argparse.ArgumentParser: + parser = argparse.ArgumentParser( + usage = "%(prog)s [OPTION]", + description = "Manage a context-base next-action list." + ) + parser.add_argument( + "-v", "--version", action = "version", + version = f"{parser.prog} version 1.0.0" + ) + parser.add_argument("-d", "--database") + return parser |