mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 02:16:12 +01:00
- fix indentation (enforceming pattern file argument)
- don't implicitely add .xml to pattern files -- it will probably cause confusion.
This commit is contained in:
parent
a9dbc4bb1d
commit
1945a7a683
@ -207,12 +207,11 @@ class Osc(cmdln.Cmdln):
|
||||
project = args[0]
|
||||
if len(args) > 1:
|
||||
pattern = args[1]
|
||||
pattern += '.xml'
|
||||
else:
|
||||
pattern = None
|
||||
# enforce pattern argument if needed
|
||||
if opts.edit or opts.file:
|
||||
sys.exit('a pattern file argument is required.')
|
||||
# enforce pattern argument if needed
|
||||
if opts.edit or opts.file:
|
||||
sys.exit('a pattern file argument is required.')
|
||||
|
||||
# show
|
||||
if not opts.edit and not opts.file:
|
||||
|
Loading…
Reference in New Issue
Block a user