Lines 145-150
Link Here
|
145 |
|
145 |
|
146 |
modes = { |
146 |
modes = { |
147 |
'commit' : 'Run a scan then commit changes', |
147 |
'commit' : 'Run a scan then commit changes', |
|
|
148 |
'ci' : 'Run a scan then commit changes', |
148 |
'fix' : 'Fix simple QA issues (stray digests, missing digests)', |
149 |
'fix' : 'Fix simple QA issues (stray digests, missing digests)', |
149 |
'full' : 'Scan directory tree and print all issues (not a summary)', |
150 |
'full' : 'Scan directory tree and print all issues (not a summary)', |
150 |
'help' : 'Show this screen', |
151 |
'help' : 'Show this screen', |
Lines 224-230
Link Here
|
224 |
if not opts.mode: |
225 |
if not opts.mode: |
225 |
opts.mode = 'full' #default to full |
226 |
opts.mode = 'full' #default to full |
226 |
|
227 |
|
227 |
if opts.mode == 'commit' and not (opts.force or opts.pretend): |
228 |
if opts.mode in ['commit', 'ci'] and not (opts.force or opts.pretend): |
228 |
if opts.ignore_masked: |
229 |
if opts.ignore_masked: |
229 |
parser.error('Commit mode and --ignore-masked are not compatible') |
230 |
parser.error('Commit mode and --ignore-masked are not compatible') |
230 |
if opts.without_mask: |
231 |
if opts.without_mask: |