From 6bb859fb88d10095a2c61ea91ab8b0d32fb26cfb Mon Sep 17 00:00:00 2001 From: Juraj Smiesko Date: Fri, 11 Aug 2023 11:41:45 +0200 Subject: [PATCH] Allow help without config file --- k4FWCore/scripts/k4run | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/k4FWCore/scripts/k4run b/k4FWCore/scripts/k4run index 9fa272d2..c8742313 100755 --- a/k4FWCore/scripts/k4run +++ b/k4FWCore/scripts/k4run @@ -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 , use --help to get a complete list of arguments') sys.exit(1)