Add argparse help
This commit is contained in:
parent
97eb001797
commit
2669a7a185
5
main.py
5
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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user