Lines 144-152
def ParseArgs(argv, qahelp):
Link Here
|
144 |
'scan' : 'Scan directory tree for QA issues' |
144 |
'scan' : 'Scan directory tree for QA issues' |
145 |
} |
145 |
} |
146 |
|
146 |
|
|
|
147 |
output_choices = { |
148 |
'default' : 'The normal output format', |
149 |
'column' : 'Columnar output suitable for use with grep' |
150 |
} |
151 |
|
147 |
mode_keys = list(modes) |
152 |
mode_keys = list(modes) |
148 |
mode_keys.sort() |
153 |
mode_keys.sort() |
149 |
|
154 |
|
|
|
155 |
output_keys = sorted(output_choices) |
156 |
|
150 |
parser = ArgumentParser(usage="repoman [options] [mode]", |
157 |
parser = ArgumentParser(usage="repoman [options] [mode]", |
151 |
description="Modes: %s" % " | ".join(mode_keys), |
158 |
description="Modes: %s" % " | ".join(mode_keys), |
152 |
epilog="For more help consult the man page.") |
159 |
epilog="For more help consult the man page.") |
Lines 228-233
def ParseArgs(argv, qahelp):
Link Here
|
228 |
parser.add_argument('--without-mask', dest='without_mask', action='store_true', |
235 |
parser.add_argument('--without-mask', dest='without_mask', action='store_true', |
229 |
default=False, help='behave as if no package.mask entries exist (not allowed with commit mode)') |
236 |
default=False, help='behave as if no package.mask entries exist (not allowed with commit mode)') |
230 |
|
237 |
|
|
|
238 |
parser.add_argument('--output-style', dest='output_style', choices=output_keys, |
239 |
help='select output type', default='default') |
240 |
|
231 |
parser.add_argument('--mode', dest='mode', choices=mode_keys, |
241 |
parser.add_argument('--mode', dest='mode', choices=mode_keys, |
232 |
help='specify which mode repoman will run in (default=full)') |
242 |
help='specify which mode repoman will run in (default=full)') |
233 |
|
243 |
|
Lines 2422-2428
console_writer.style_listener = style_file.new_styles
Link Here
|
2422 |
|
2432 |
|
2423 |
f = formatter.AbstractFormatter(console_writer) |
2433 |
f = formatter.AbstractFormatter(console_writer) |
2424 |
|
2434 |
|
2425 |
utilities.format_qa_output(f, stats, fails, dofull, dofail, options, qawarnings) |
2435 |
if options.output_style == 'column': |
|
|
2436 |
utilities.format_qa_output_column(f, stats, fails, dofull, dofail, options, qawarnings) |
2437 |
else: |
2438 |
utilities.format_qa_output(f, stats, fails, dofull, dofail, options, qawarnings) |
2426 |
|
2439 |
|
2427 |
style_file.flush() |
2440 |
style_file.flush() |
2428 |
del console_writer, f, style_file |
2441 |
del console_writer, f, style_file |