Print help when osc-batch-submit is run without parameters
This commit is contained in:
@@ -96,6 +96,10 @@ remove-cache
|
||||
|
||||
options = main_parser.parse_args()
|
||||
|
||||
if not options.command:
|
||||
main_parser.print_help()
|
||||
sys.exit(1)
|
||||
|
||||
self.command = options.command
|
||||
|
||||
if getattr(options, 'config_file', None):
|
||||
|
Reference in New Issue
Block a user