Ignore --auto-reload if --manage-users is specified

This commit is contained in:
Kovid Goyal 2019-07-15 09:56:29 +05:30
parent c1e6aca8e0
commit e06d268dad
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ def manage_users_cli(path=None):
_('Change read/write permission for {}').format(username),
_('Change the libraries {} is allowed to access').format(username),
_('Cancel'), ],
banner='\n' + _('{} has {} access').format(
banner='\n' + _('{0} has {1} access').format(
username,
_('readonly') if m.is_readonly(username) else _('read-write')))
print()

View File

@ -184,7 +184,7 @@ def ensure_single_instance():
def main(args=sys.argv):
opts, args = create_option_parser().parse_args(args)
if opts.auto_reload:
if opts.auto_reload and not opts.manage_users:
if getattr(opts, 'daemonize', False):
raise SystemExit(
'Cannot specify --auto-reload and --daemonize at the same time')