aboutsummaryrefslogtreecommitdiff
path: root/src/arguments.py
blob: 0065b786d9bd439e49a95516cb42871ed9423917 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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