8484NO_RESIZE_LIST = ["Variablelist" ]
8585
8686MISSING_ARGUMENT_DESCRIPTION = """The description of the argument is missing in the Python function.
87- Please, refer to the product documentation for further information."""
87+ Please, refer to the `command documentation <url>`_ for further information."""
8888
89- ADDITIONAL_ARGUMENT_DESCRIPTION = """Additional arguments can be passed to the intial command.
90- Please, refer to the product documentation for further information."""
89+ ADDITIONAL_ARGUMENT_DESCRIPTION = """Additional arguments can be passed to the initial command.
90+ Please, refer to the `command documentation <url>`_ for further information."""
9191
9292
9393class NameMap :
@@ -2325,9 +2325,10 @@ def to_py_docstring(
23252325
23262326
23272327class ArgumentList :
2328- def __init__ (self , py_name : str , list_entry : VarlistEntry , args : List ) -> None :
2328+ def __init__ (self , py_name : str , url : str , list_entry : VarlistEntry , args : List ) -> None :
23292329
23302330 self ._py_name = py_name
2331+ self ._url = url
23312332 self ._list_entry = list_entry
23322333 self ._arguments = []
23332334 self ._additional_args = []
@@ -2357,7 +2358,7 @@ def _parse_list_entry(self):
23572358 self ._arguments .append (temp_args [initial_arg ])
23582359 else :
23592360 self ._arguments .append (
2360- Argument (initial_arg , self ._initial_args , MISSING_ARGUMENT_DESCRIPTION )
2361+ Argument (initial_arg , self ._initial_args , MISSING_ARGUMENT_DESCRIPTION . replace ( "url" , f" { self . _url } " ) )
23612362 ) # description is missing
23622363
23632364 is_additional_arg = False
@@ -2370,7 +2371,7 @@ def _parse_list_entry(self):
23702371 if is_additional_arg and "addional_command_arg" not in self .py_arg_names :
23712372 self ._arguments .append (
23722373 Argument (
2373- "addional_command_arg" , self ._initial_args , ADDITIONAL_ARGUMENT_DESCRIPTION
2374+ "addional_command_arg" , self ._initial_args , ADDITIONAL_ARGUMENT_DESCRIPTION . replace ( "url" , f" { self . _url } " )
23742375 )
23752376 )
23762377
@@ -2392,7 +2393,7 @@ def __iadd__(self, argument_list):
23922393 else :
23932394 if initial_arg not in self .py_arg_names :
23942395 self ._arguments .append (
2395- Argument (initial_arg , self ._initial_args , MISSING_ARGUMENT_DESCRIPTION )
2396+ Argument (initial_arg , self ._initial_args , MISSING_ARGUMENT_DESCRIPTION . replace ( "url" , f" { self . _url } " ) )
23962397 )
23972398
23982399 is_additional_arg = False
@@ -2405,7 +2406,7 @@ def __iadd__(self, argument_list):
24052406 if is_additional_arg and "addional_command_arg" not in self .py_arg_names :
24062407 self ._arguments .append (
24072408 Argument (
2408- "addional_command_arg" , self ._initial_args , ADDITIONAL_ARGUMENT_DESCRIPTION
2409+ "addional_command_arg" , self ._initial_args , ADDITIONAL_ARGUMENT_DESCRIPTION . replace ( "url" , f" { self . _url } " )
24092410 )
24102411 )
24112412
@@ -2501,17 +2502,17 @@ def arg_desc(self) -> List[Argument]:
25012502 for child in elem :
25022503 if isinstance (child , Variablelist ):
25032504 if arguments is None :
2504- arguments = ArgumentList (self .py_name , child , self .args )
2505+ arguments = ArgumentList (self .py_name , self . url , child , self .args )
25052506 else :
2506- arguments += ArgumentList (self .py_name , child , self .args )
2507+ arguments += ArgumentList (self .py_name , self . url , child , self .args )
25072508
25082509 else :
25092510 for elem in refsyn :
25102511 if isinstance (elem , Variablelist ):
25112512 if arguments is None :
2512- arguments = ArgumentList (self .py_name , elem , self .args )
2513+ arguments = ArgumentList (self .py_name , self . url , elem , self .args )
25132514 else :
2514- arguments += ArgumentList (self .py_name , elem , self .args )
2515+ arguments += ArgumentList (self .py_name , self . url , elem , self .args )
25152516
25162517 arg_file = Path ("args.txt" )
25172518
0 commit comments