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

  • Committer: Tim Marston
  • Date: 2014-09-09 19:14:47 UTC
  • Revision ID: tim@ed.am-20140909191447-j3rapksxamefpm68
minor comment formatting tweak

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
                        'rm': 'remove',
118
118
                        'st': 'status',
119
119
                        'co': 'init',
120
 
                        'ci': 'add',
121
120
                }.get( command, False )
122
121
                if alias: return alias
123
122
 
142
141
 
143
142
        def run( self ):
144
143
                # make an initial attempt to parse the command line, looking only for
145
 
                # --help and --version so that they have the chance to run without a
 
144
                # --help and --version, so that they have the chance to run without a
146
145
                # command being specified
147
146
                try:
148
147
                        opts, args = getopt.gnu_getopt(
208
207
                try:
209
208
                        instance.run()
210
209
                except Vcs.VcsError as e:
211
 
                        message = e.msg.rstrip() + '\n\nVCS OUTPUT:\n' + e.output.rstrip()
 
210
                        message = e.msg.rstrip()
 
211
                        if the.verbose >= 1:
 
212
                                message += '\n\nOUTPUT:\n' + e.output.rstrip()
212
213
                        self.die( message )
213
214
                except self.FatalError as e:
214
215
                        self.die( e.msg )