Add argparse help

This commit is contained in:
Fabian 2024-11-03 23:50:59 +01:00
parent 97eb001797
commit 2669a7a185

View File

@ -166,9 +166,10 @@ def write_service_units(args, yaml_dict):
def parse_args():
parser = argparse.ArgumentParser()
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument("compose_file")
parser.add_argument("-o", "--output-dir", default="/etc/containers/systemd", type=Path)
parser.add_argument("-o", "--output-dir", help="output directory for unit files",
default="/etc/containers/systemd", type=Path)
return parser.parse_args()