mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-19 13:17:56 +08:00
Merge remote-tracking branch 'origin/development' into development
This commit is contained in:
commit
cefed940a0
1 changed files with 6 additions and 2 deletions
|
@ -5,6 +5,7 @@ import argparse
|
|||
|
||||
from distutils.util import strtobool
|
||||
|
||||
no_update = bool(os.environ.get("NO_UPDATE", False))
|
||||
parser = argparse.ArgumentParser()
|
||||
|
||||
|
||||
|
@ -16,8 +17,9 @@ def get_args():
|
|||
dest="config_dir", help="Directory containing the configuration (default: %s)" % config_dir)
|
||||
parser.add_argument('-p', '--port', type=int, metavar="PORT", dest="port",
|
||||
help="Port number (default: 6767)")
|
||||
parser.add_argument('--no-update', default=False, type=bool, const=True, metavar="BOOL", nargs="?",
|
||||
help="Disable update functionality (default: False)")
|
||||
if not no_update:
|
||||
parser.add_argument('--no-update', default=False, type=bool, const=True, metavar="BOOL", nargs="?",
|
||||
help="Disable update functionality (default: False)")
|
||||
parser.add_argument('--debug', default=False, type=bool, const=True, metavar="BOOL", nargs="?",
|
||||
help="Enable console debugging (default: False)")
|
||||
parser.add_argument('--release-update', default=False, type=bool, const=True, metavar="BOOL", nargs="?",
|
||||
|
@ -31,3 +33,5 @@ def get_args():
|
|||
|
||||
|
||||
args = get_args()
|
||||
if no_update:
|
||||
args.no_update = True
|
||||
|
|
Loading…
Reference in a new issue