Skip to content

Commit

Permalink
Allow help without config file
Browse files Browse the repository at this point in the history
  • Loading branch information
kjvbrt committed Aug 11, 2023
1 parent a58b287 commit 6bb859f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion k4FWCore/scripts/k4run
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ if __name__ == "__main__":
print(" %s (from %s)" % (item, cfgDb[item]["lib"]))
sys.exit()

if len(opts[0].config_files) == 0:
if len(opts[0].config_files) == 0 \
and ('-h' not in opts[1] and '--help' not in opts[1]):
print('Error: missing gaudi options file.\n'
'Usage: k4run <options_file.py>, use --help to get a complete list of arguments')
sys.exit(1)
Expand Down

0 comments on commit 6bb859f

Please sign in to comment.