Skip to content
Snippets Groups Projects
Commit 1b5131fe authored by ale's avatar ale
Browse files

add an option to skip the version check

parent 3e294900
Branches
No related tags found
No related merge requests found
......@@ -133,6 +133,7 @@ def main():
'unlimited)')
parser.add_option('--no_realtime_watch', action='store_true',
help='Monitor music_dir in realtime')
parser.add_option('--skip_version_check', action='store_true')
daemonize.add_standard_options(parser)
utils.read_config_defaults(
parser, os.path.expanduser('~/.djrandom.conf'))
......@@ -147,7 +148,7 @@ def main():
parser.error('Too many arguments')
# Perform a version check.
if utils.check_version():
if not opts.skip_version_check and utils.check_version():
print >>sys.stderr, 'A new release is available! Please update.'
# Reading from the configuration file will set this variable to
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment