Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/development' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 committed Apr 7, 2022
2 parents 77da09d + 85cffb3 commit cefed94
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bazarr/get_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from distutils.util import strtobool

no_update = bool(os.environ.get("NO_UPDATE", False))
parser = argparse.ArgumentParser()


Expand All @@ -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="?",
Expand All @@ -31,3 +33,5 @@ def get_args():


args = get_args()
if no_update:
args.no_update = True

0 comments on commit cefed94

Please sign in to comment.