Fix docopt handling
* Show usage if invalid arguments are used
This commit is contained in:
parent
0883b099fd
commit
b2528b90f8
1 changed files with 7 additions and 0 deletions
|
|
@ -20,6 +20,13 @@ set_log_file('Build UFD ({Date-Time}).log'.format(**global_vars))
|
|||
if __name__ == '__main__':
|
||||
try:
|
||||
args = docopt(DOCSTRING)
|
||||
except SystemExit as err:
|
||||
# Catch docopt exits
|
||||
print(err)
|
||||
exit_script()
|
||||
except:
|
||||
major_exception()
|
||||
try:
|
||||
sources = OrderedDict()
|
||||
|
||||
# Verify selections
|
||||
|
|
|
|||
Loading…
Reference in a new issue