Skip to content

Commit

Permalink
ceph.in: Notify user that 'tell' can't be used in interactive mode
Browse files Browse the repository at this point in the history
Signed-off-by: David Zafman <dzafman@redhat.com>
  • Loading branch information
dzafman committed Oct 21, 2015
1 parent 7b2e9fc commit b515f12
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ceph.in
Expand Up @@ -420,6 +420,12 @@ def new_style_command(parsed_args, cmdargs, target, sigdict, inbuf, verbose):
print >> sys.stderr, \
'error handling command target: {0}'.format(e)
continue
if len(cmdargs) and cmdargs[0] == 'tell':
print >> sys.stderr, \
'Cannot use \'tell\' with interactive mode.', \
'For an interactive shell,', \
'please start "{0}" without non-option arguments.'.format(sys.argv[0])
continue
valid_dict = validate_command(sigdict, cmdargs, verbose)
if valid_dict:
if parsed_args.output_format:
Expand Down

0 comments on commit b515f12

Please sign in to comment.