diff --git a/moulin/main.py b/moulin/main.py index 9a1edf0..4f7570c 100644 --- a/moulin/main.py +++ b/moulin/main.py @@ -100,7 +100,8 @@ def _handle_shared_opts(description: str, raise Exception(f"Config file requires version {conf.min_ver}," + f" while you are running moulin {our_ver}") - prog = f"{sys.argv[0]} {local_conf_file}" + _, exec_name = os.path.split(sys.argv[0]) + prog = f"{exec_name} {local_conf_file}" desc = f"Config file description: {conf.desc}" config_argparser = argparse.ArgumentParser(description=desc, prog=prog, add_help=False, formatter_class=argparse.ArgumentDefaultsHelpFormatter)