[Patch] Make 'bzr' == 'bzr help'

Michael Ellerman michael+bazaar at ellerman.id.au
Mon May 9 15:33:56 BST 2005


Hi Martin,

It strikes me that this should be the default when someone just types 'bzr'.

cheers

*** modified file 'bzrlib/commands.py'
--- bzrlib/commands.py
+++ bzrlib/commands.py
@@ -869,9 +904,7 @@
             return 0
         cmd = str(args.pop(0))
     except IndexError:
-        log_error('usage: bzr COMMAND')
-        log_error('  try "bzr help"')
-        return 1
+        cmd = 'help'

     canonical_cmd, cmd_class = get_cmd_class(cmd)






More information about the bazaar mailing list