~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-04-15 02:58:33 UTC
  • Revision ID: mbp@sourcefrog.net-20050415025833-a7a0ed0591b43493
parse_args: command names must also be ascii

Show diffs side-by-side

added added

removed removed

Lines of Context:
953
953
        elif 'version' in opts:
954
954
            cmd_version()
955
955
            return 0
956
 
        cmd = args.pop(0)
 
956
        cmd = str(args.pop(0))
957
957
    except IndexError:
958
958
        log_error('usage: bzr COMMAND')
959
959
        log_error('  try "bzr help"')
985
985
    # mix arguments and options into one dictionary
986
986
    cmdargs = _match_args(cmd, args)
987
987
    for k, v in opts.items():
988
 
        cmdargs[str(k.replace('-', '_'))] = v
 
988
        cmdargs[k.replace('-', '_')] = v
989
989
 
990
990
    if profile:
991
991
        import hotshot