mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-22 09:26:16 +00:00
update args info
This commit is contained in:
@@ -18,16 +18,16 @@ parser = argparse.ArgumentParser()
|
||||
|
||||
def parse_args():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("-f", "--config", help="config file", type=argparse.FileType('r'))
|
||||
parser.add_argument("-c", "--charge-control", help="enable charge control", const="charge_config.json", nargs='?')
|
||||
parser.add_argument("-d", "--debug", help="enable debug", const=10, default=20, nargs='?')
|
||||
parser.add_argument("-l", "--listen", help="change server listen address", default="127.0.0.1")
|
||||
parser.add_argument("-p", "--port", help="change server listen address", default="5000")
|
||||
parser.add_argument("-r", "--record-position", help="save vehicle position to db", action='store_true')
|
||||
parser.add_argument("-m", "--mail", help="change the email address")
|
||||
parser.add_argument("-P", "--password", help="change the password")
|
||||
parser.add_argument("-f", "--config", help="config file, default file: config.json", type=argparse.FileType('r'))
|
||||
parser.add_argument("-c", "--charge-control", help="enable charge control, default charge_config.json", const="charge_config.json", nargs='?', metavar='charge config file')
|
||||
parser.add_argument("-d", "--debug", help="enable debug", const=10, default=20, nargs='?', metavar='Debug level number')
|
||||
parser.add_argument("-l", "--listen", help="change server listen address", default="127.0.0.1", metavar="IP")
|
||||
parser.add_argument("-p", "--port", help="change server listen port", default="5000")
|
||||
parser.add_argument("-r", "--record", help="save vehicle data to db", action='store_true')
|
||||
parser.add_argument("-m", "--mail", help="set the email address")
|
||||
parser.add_argument("-P", "--password", help="set the password")
|
||||
parser.add_argument("--remote-disable", help="disable remote control")
|
||||
parser.add_argument("-b", "--base-path", help="base path for app",default="/")
|
||||
parser.add_argument("-b", "--base-path", help="base path for web app",default="/")
|
||||
parser.parse_args()
|
||||
return parser
|
||||
|
||||
|
||||
Reference in New Issue
Block a user