/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/stage_revert.py

  • Committer: Tim Marston
  • Date: 2014-07-30 19:09:02 UTC
  • Revision ID: tim@ed.am-20140730190902-bkuu372rya4zokm8
added info for add command to --help; fixed bug with add command where all files
in directories could be added to the commit instead of just the ones you've
specified

Show diffs side-by-side

added added

removed removed

64
64
                        if opt == "--force":
65
65
                                self.force = True
66
66
                        elif opt in [ '--repo', '-r' ]:
67
 
                                if not re.search( '^[-a-zA-z0-9.]+$', optarg ):
 
67
                                if not re.match( '^[-a-zA-z0-9.]+$', optarg ):
68
68
                                        raise the.program.FatalError(
69
69
                                                'invalid repository name: ' + optarg )
70
70
                                the.repo = optarg
 
71
                        elif opt in [ '--verbose', '-v' ]:
 
72
                                the.verbose += 1
71
73
                        elif opt == "--help":
72
74
                                self.print_help()
73
 
 
 
75
                
74
76
                # discard first argument (the command)
75
77
                args.pop( 0 )
76
78