From 2669a7a185f2481f7a499239bf93891253185866 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sun, 3 Nov 2024 23:50:59 +0100 Subject: [PATCH] Add argparse help --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 9ca02ae..0141359 100755 --- a/main.py +++ b/main.py @@ -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()