@@ -56,13 +56,43 @@ def gen_topology_config(
5656
5757
5858def main () -> None :
59- parser = argparse .ArgumentParser ()
60- parser .add_argument ("--build" , type = str , required = True )
61- parser .add_argument ("--mtl_path" , type = str , required = True )
62- parser .add_argument ("--ip_address" , type = str , required = True )
63- parser .add_argument ("--username" , type = str , required = True )
64- parser .add_argument ("--password" , type = str , default = "None" )
65- parser .add_argument ("--key_path" , type = str , default = "None" )
59+ parser = argparse .ArgumentParser (description = "Generate example test and topology configs for the test framework" )
60+ parser .add_argument (
61+ "--build" ,
62+ type = str ,
63+ required = True ,
64+ help = "specify path to MTL directory" ,
65+ )
66+ parser .add_argument (
67+ "--mtl_path" ,
68+ type = str ,
69+ required = True ,
70+ help = "specify path to MTL directory" ,
71+ )
72+ parser .add_argument (
73+ "--ip_address" ,
74+ type = str ,
75+ required = True ,
76+ help = "specify IP address of the test host" ,
77+ )
78+ parser .add_argument (
79+ "--username" ,
80+ type = str ,
81+ required = True ,
82+ help = "specify username for the test host" ,
83+ )
84+ parser .add_argument (
85+ "--password" ,
86+ type = str ,
87+ default = "None" ,
88+ help = "specify password for the test host" ,
89+ )
90+ parser .add_argument (
91+ "--key_path" ,
92+ type = str ,
93+ default = "None" ,
94+ help = "specify path to SSH private key for the test host" ,
95+ )
6696 args = parser .parse_args ()
6797 if not args .password and not args .key_path :
6898 parser .error ("one of the arguments --password --key_path is required" )
0 commit comments