optspec = ['help', 'version', 'debug', 'profile', 'bup-dir=']
global_args, subcmd = getopt.getopt(argv[1:], '?VDd:', optspec)
except getopt.GetoptError, ex:
- usage('error: %s' % ex.msg)
+ usage('Error: %s!' % ex.msg)
help_requested = None
do_profile = False
elif opt[0] in ['-d', '--bup-dir']:
os.environ['BUP_DIR'] = opt[1]
else:
- usage('error: unexpected option "%s"' % opt[0])
+ usage('Error: Unexpected option "%s"!' % opt[0])
# Make BUP_DIR absolute, so we aren't affected by chdir (i.e. save -C, etc.).
if 'BUP_DIR' in os.environ:
subcmd[0] = subpath(subcmd_name)
if not os.path.exists(subcmd[0]):
- usage('error: unknown command "%s"' % subcmd_name)
+ usage('Error: Unknown command "%s"!' % subcmd_name)
already_fixed = atoi(os.environ.get('BUP_FORCE_TTY'))
if subcmd_name in ['mux', 'ftp', 'help']:
forward_signals = True
def handler(signum, frame):
- debug1('bup: Signal %d received.' % signum)
+ debug1('bup: Signal %d received!' % signum)
if not p or not forward_signals:
return
if signum != signal.SIGTSTP: