/stdhome

To get this branch, use:
bzr branch http://bzr.ed.am/stdhome

« back to all changes in this revision

Viewing changes to lib/stdhome/command/resolve.py

  • Committer: Tim Marston
  • Date: 2014-09-09 19:13:33 UTC
  • Revision ID: tim@ed.am-20140909191333-0b7hrzonxce8mgy3
attempt to allow arguments before main command by treating the first thing that
doesn't look like an option as the command

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
                                        raise the.program.FatalError(
61
61
                                                'invalid repository name: ' + optarg )
62
62
                                the.repo = optarg
 
63
                        elif opt in [ '--verbose', '-v' ]:
 
64
                                the.verbose += 1
63
65
                        elif opt == "--help":
64
66
                                self.print_help()
65
 
 
 
67
                
66
68
                # discard first argument (the command)
67
69
                args.pop( 0 )
68
70