feat: improve help output

This commit is contained in:
ptrcnull 2024-07-23 14:36:41 +02:00
parent 2ccdd4602b
commit 23b6b78b64

View file

@ -15,10 +15,11 @@ log = logging.getLogger('nyacme')
def main() -> None:
parser = argparse.ArgumentParser(
prog='nyacme',
description='fun uacme wrapper'
description='fun uacme wrapper',
formatter_class=argparse.ArgumentDefaultsHelpFormatter
)
parser.add_argument('-c', '--config', default='/etc/nyacme.toml')
parser.add_argument('-o', '--output', default='/etc/ssl/uacme')
parser.add_argument('-c', '--config', help='path to your config file', default='/etc/nyacme.toml')
parser.add_argument('-o', '--output', help='path to the certificate output directory', default='/etc/ssl/uacme')
args = parser.parse_args()
config = read_config(args.config)