~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Michael Ellerman
  • Date: 2006-06-08 04:38:47 UTC
  • mto: (0.3.1 shelf-dev)
  • mto: This revision was merged to the branch mainline in revision 393.
  • Revision ID: michael@ellerman.id.au-20060608043847-f5187d6ddd2ceab4
Arg names with hyphens don't seem to work (broke shelf switch).

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
class cmd_shelf_switch(bzrlib.commands.Command):
78
78
    """Switch to the other shelf, create it if necessary."""
79
79
    aliases = ['switch']
80
 
    takes_args = ['other-shelf']
81
 
    def run(self, other_shelf):
82
 
        s = Shelf(self.shelf.base, other_shelf)
 
80
    takes_args = ['othershelf']
 
81
    def run(self, othershelf):
 
82
        s = Shelf(self.shelf.base, othershelf)
83
83
        s.make_default()
84
84
 
85
85