~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Jelmer Vernooij
  • Date: 2005-10-17 19:17:07 UTC
  • Revision ID: jelmer@samba.org-20051017191707-69bfef4a840168a6
Leaver generating help for options to Option class

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
from bzrlib.option import Option
11
11
sys.path.append(os.path.dirname(__file__))
12
12
 
13
 
Option.OPTIONS['ignored'] = Option('ignored')
14
 
Option.OPTIONS['detrius'] = Option('detrius')
15
 
Option.OPTIONS['dry-run'] = Option('dry-run')
 
13
Option.OPTIONS['ignored'] = Option('ignored',
 
14
        help='delete all ignored files.')
 
15
Option.OPTIONS['detrius'] = Option('detrius',
 
16
        help='delete conflict files merge backups, and failed selftest dirs.' +
 
17
              '(*.THIS, *.BASE, *.OTHER, *~, *.tmp')
 
18
Option.OPTIONS['dry-run'] = Option('dry-run',
 
19
        help='show files to delete instead of deleting them.')
16
20
 
17
21
class cmd_clean_tree(bzrlib.commands.Command):
18
22
    """Remove unwanted files from working tree.
19
23
    Normally, ignored files are left alone.
20
 
 
21
 
    OPTIONS:
22
 
    --detrius Delete conflict files merge backups, and failed selftest dirs. 
23
 
              (*.THIS, *.BASE, *.OTHER, *~, *.tmp)
24
 
    --ignored Delete all ignored files.
25
 
    --dry-run Show files to delete instead of deleting them.
26
24
    """
27
25
    takes_options = ['ignored', 'detrius', 'dry-run']
28
26
    def run(self, ignored=False, detrius=False, dry_run=False):