aboutsummaryrefslogtreecommitdiff
path: root/src/arguments.py
diff options
context:
space:
mode:
authorJoris2020-05-10 15:55:32 +0200
committerJoris2020-05-10 15:55:32 +0200
commit3e1415c738facb8b0274adb50ae65f218fd59c9b (patch)
treed839857b99d0606dec6ace33ede88c0080c8bad1 /src/arguments.py
parent45414a031909a360a025048592566e14cd71e5be (diff)
Parse database command line argument
Diffstat (limited to 'src/arguments.py')
-rw-r--r--src/arguments.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/arguments.py b/src/arguments.py
new file mode 100644
index 0000000..0065b78
--- /dev/null
+++ b/src/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