~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-05-11 00:56:49 UTC
  • Revision ID: mbp@sourcefrog.net-20050511005649-856056d8e3ec98d5
- bzr with no command now shows help, not just an error

Show diffs side-by-side

added added

removed removed

Lines of Context:
1020
1020
            return 0
1021
1021
        cmd = str(args.pop(0))
1022
1022
    except IndexError:
1023
 
        log_error('usage: bzr COMMAND')
1024
 
        log_error('  try "bzr help"')
 
1023
        import help
 
1024
        help.help()
1025
1025
        return 1
 
1026
          
1026
1027
 
1027
1028
    canonical_cmd, cmd_class = get_cmd_class(cmd)
1028
1029