From f3715fb108112d9a91c505c6b6c5decdf8fe515f Mon Sep 17 00:00:00 2001 From: RAJVEER42 Date: Wed, 10 Jun 2026 01:30:09 +0530 Subject: [PATCH] Fix misleading usage string in create-envfile.py The argparse usage advertised a positional 'localhost', but the parser only accepts the host via -hn/--hostname, so the documented invocation 'python create-envfile.py localhost' failed with 'unrecognized arguments: localhost'. Align the usage string with the actual interface. --- create-envfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create-envfile.py b/create-envfile.py index 7a733a87..087be0e8 100644 --- a/create-envfile.py +++ b/create-envfile.py @@ -135,7 +135,7 @@ def _get_vals_to_replace(args): parser = argparse.ArgumentParser( prog="ENV file builder", description="Tool for generate environment file automatically. The information can be passed or via CLI or via JSON file ( --file /path/env.json)", - usage="python create-envfile.py localhost -f /path/to/json/file.json", + usage="python create-envfile.py -hn localhost -f /path/to/json/file.json", allow_abbrev=False ) parser.add_argument(