Add a program name to argparse.
This commit is contained in:
parent
295a5deb61
commit
5e5d69457e
@ -14,6 +14,7 @@ log = logging.getLogger(__name__)
|
|||||||
|
|
||||||
def create_parser():
|
def create_parser():
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
|
prog='datafreeze',
|
||||||
description='Generate static JSON and CSV extracts from a SQL database.',
|
description='Generate static JSON and CSV extracts from a SQL database.',
|
||||||
epilog='For further information, please check the documentation.')
|
epilog='For further information, please check the documentation.')
|
||||||
parser.add_argument('config', metavar='CONFIG', type=str,
|
parser.add_argument('config', metavar='CONFIG', type=str,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user