~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-05-30 03:13:56 UTC
  • Revision ID: mbp@sourcefrog.net-20050530031356-84e700ef1b8dffbe
- add --no-recurse option for add command

Show diffs side-by-side

added added

removed removed

Lines of Context:
313
313
    recursively add that parent, rather than giving an error?
314
314
    """
315
315
    takes_args = ['file+']
316
 
    takes_options = ['verbose']
 
316
    takes_options = ['verbose', 'no-recurse']
317
317
    
318
 
    def run(self, file_list, verbose=False):
319
 
        bzrlib.add.smart_add(file_list, verbose)
 
318
    def run(self, file_list, verbose=False, no_recurse=False):
 
319
        bzrlib.add.smart_add(file_list, verbose, not no_recurse)
320
320
 
321
321
 
322
322
class cmd_relpath(Command):
1039
1039
    'file':                   unicode,
1040
1040
    'forward':                None,
1041
1041
    'message':                unicode,
 
1042
    'no-recurse':             None,
1042
1043
    'profile':                None,
1043
1044
    'revision':               _parse_revision_str,
1044
1045
    'show-ids':               None,