mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ignore --auto-reload if --manage-users is specified
This commit is contained in:
parent
c1e6aca8e0
commit
e06d268dad
@ -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()
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user