Skip to content

Commit fdacdbe

Browse files
committed
Docs: Improve help text for config generator
1 parent 416851d commit fdacdbe

File tree

1 file changed

+39
-7
lines changed

1 file changed

+39
-7
lines changed

tests/validation/configs/gen_config.py

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,45 @@ def gen_topology_config(
5959

6060

6161
def main() -> None:
62-
parser = argparse.ArgumentParser()
63-
parser.add_argument("--build", type=str, required=True)
64-
parser.add_argument("--mtl_path", type=str, required=True)
65-
parser.add_argument("--ip_address", type=str, required=True)
66-
parser.add_argument("--username", type=str, required=True)
67-
parser.add_argument("--password", type=str, default="None")
68-
parser.add_argument("--key_path", type=str, default="None")
62+
parser = argparse.ArgumentParser(
63+
description="Generate example test and topology configs for the test framework."
64+
)
65+
parser.add_argument(
66+
"--build",
67+
type=str,
68+
required=True,
69+
help="specify path to MTL directory",
70+
)
71+
parser.add_argument(
72+
"--mtl_path",
73+
type=str,
74+
required=True,
75+
help="specify path to MTL directory",
76+
)
77+
parser.add_argument(
78+
"--ip_address",
79+
type=str,
80+
required=True,
81+
help="specify IP address of the test host",
82+
)
83+
parser.add_argument(
84+
"--username",
85+
type=str,
86+
required=True,
87+
help="specify username for the test host",
88+
)
89+
parser.add_argument(
90+
"--password",
91+
type=str,
92+
default="None",
93+
help="specify password for the test host",
94+
)
95+
parser.add_argument(
96+
"--key_path",
97+
type=str,
98+
default="None",
99+
help="specify path to SSH private key for the test host",
100+
)
69101
args = parser.parse_args()
70102
if args.password == "None" and args.key_path == "None":
71103
parser.error("one of the arguments --password --key_path is required")

0 commit comments

Comments
 (0)