~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Ian Clatworthy
  • Date: 2009-03-17 06:18:30 UTC
  • mto: (4157.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 4158.
  • Revision ID: ian.clatworthy@canonical.com-20090317061830-9glppr51ggivnrgl
Show usage on --usage, not -h

Show diffs side-by-side

added added

removed removed

Lines of Context:
530
530
 
531
531
        # Process the standard options
532
532
        if 'help' in opts:  # e.g. bzr add --help
 
533
            sys.stdout.write(self.get_help_text())
 
534
            return 0
 
535
        if 'usage' in opts:  # e.g. bzr add --usage
533
536
            sys.stdout.write(self.get_help_text(verbose=False))
534
537
            return 0
535
538
        trace.set_verbosity_level(option._verbosity_level)