~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-08-25 01:19:00 UTC
  • Revision ID: mbp@sourcefrog.net-20050825011900-83c7c926915a5052
- remove accidental breakage of diff command

- bzr help -l gives all commands

Show diffs side-by-side

added added

removed removed

Lines of Context:
886
886
    def run(self, revision=None, file_list=None, diff_options=None):
887
887
        from bzrlib.diff import show_diff
888
888
 
889
 
        print aksdkasjdlksad
890
 
 
891
889
        if file_list:
892
890
            b = find_branch(file_list[0])
893
891
            file_list = [b.relpath(f) for f in file_list]
1594
1592
    """Show help on a command or other topic.
1595
1593
 
1596
1594
    For a list of all available commands, say 'bzr help commands'."""
 
1595
    takes_options = ['long']
1597
1596
    takes_args = ['topic?']
1598
1597
    aliases = ['?']
1599
1598
    
1600
 
    def run(self, topic=None):
 
1599
    def run(self, topic=None, long=False):
1601
1600
        import help
 
1601
        if topic is None and long:
 
1602
            topic = "commands"
1602
1603
        help.help(topic)
1603
1604
 
1604
1605