~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Parth Malwankar
  • Date: 2010-03-28 04:07:38 UTC
  • mto: (0.44.2 grep) (6531.3.1 merge-grep)
  • mto: This revision was merged to the branch mainline in revision 6555.
  • Revision ID: parth.malwankar@gmail.com-20100328040738-ul73juugwggituuw
ordered the command line options correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
    takes_options = [
86
86
        'verbose',
87
87
        'revision',
 
88
        ListOption('exclude', type=str, argname='glob', short_name='X',
 
89
            help="Skip files whose base name matches GLOB."),
 
90
        ListOption('include', type=str, argname='glob', short_name='I',
 
91
            help="Search only files whose base name matches GLOB."),
88
92
        Option('fixed-string', short_name='F',
89
93
               help='Interpret PATTERN is a single fixed string (not regex).'),
 
94
        Option('from-root',
 
95
               help='Search for pattern starting from the root of the branch. '
 
96
               '(implies --recursive)'),
 
97
        Option('ignore-case', short_name='i',
 
98
               help='ignore case distinctions while matching.'),
 
99
        Option('levels',
 
100
           help='Number of levels to display - 0 for all, 1 for collapsed (1 is default).',
 
101
           argname='N',
 
102
           type=_parse_levels),
90
103
        Option('line-number', short_name='n',
91
104
               help='show 1-based line number.'),
92
 
        Option('ignore-case', short_name='i',
93
 
               help='ignore case distinctions while matching.'),
94
105
        Option('no-recursive',
95
106
               help="Don't recurse into subdirectories. (default is --recursive)"),
96
 
        Option('from-root',
97
 
               help='Search for pattern starting from the root of the branch. '
98
 
               '(implies --recursive)'),
99
107
        Option('null', short_name='Z',
100
108
               help='Write an ASCII NUL (\\0) separator '
101
109
               'between output lines rather than a newline.'),
102
 
        Option('levels',
103
 
           help='Number of levels to display - 0 for all, 1 for collapsed (1 is default).',
104
 
           argname='N',
105
 
           type=_parse_levels),
106
 
        ListOption('include', type=str, argname='glob', short_name='I',
107
 
            help="Search only files whose base name matches GLOB."),
108
 
        ListOption('exclude', type=str, argname='glob', short_name='X',
109
 
            help="Skip files whose base name matches GLOB."),
110
110
        ]
111
111
 
112
112