add short args
This commit is contained in:
parent
20cfcf3568
commit
cdf103af68
1 changed files with 7 additions and 7 deletions
|
@ -57,23 +57,23 @@ def parse_args():
|
|||
"""Parse the args from main."""
|
||||
parser = argparse.ArgumentParser(
|
||||
description='Export Pacer data to InfluxDB')
|
||||
parser.add_argument('--verbose', required=False,
|
||||
parser.add_argument('-v', '--verbose', required=False,
|
||||
action="store_true",
|
||||
help='verbose output')
|
||||
parser.add_argument('--host', type=str, required=False,
|
||||
parser.add_argument('-H', '--host', type=str, required=False,
|
||||
default='localhost',
|
||||
help='hostname of InfluxDB http API')
|
||||
parser.add_argument('--user', type=str, required=False,
|
||||
parser.add_argument('-u', '--user', type=str, required=False,
|
||||
default='root',
|
||||
help='username for InfluxDB http API')
|
||||
parser.add_argument('--password', type=str, required=False,
|
||||
parser.add_argument('-p', '--password', type=str, required=False,
|
||||
default='root',
|
||||
help='passworid for InfluxDB http API')
|
||||
parser.add_argument('--port', type=int, required=False, default=8086,
|
||||
parser.add_argument('-P', '--port', type=int, required=False, default=8086,
|
||||
help='port of InfluxDB http API')
|
||||
parser.add_argument('--dbname', type=str, required=True, default='demo',
|
||||
parser.add_argument('-n', '--dbname', type=str, required=True, default='demo',
|
||||
help='InfluxDB database name')
|
||||
parser.add_argument('--dbfile', type=str, required=True, default='demo.db',
|
||||
parser.add_argument('-f', '--dbfile', type=str, required=True, default='demo.db',
|
||||
help='sqlite (pacer) database name')
|
||||
return parser.parse_args()
|
||||
|
||||
|
|
Loading…
Reference in a new issue