19
19
from .__version__ import __version__
20
20
from .commands import config , profiles
21
21
22
+ old_make_metavar = click .Parameter .make_metavar
23
+
24
+
25
+ def my_make_metavar (self : click .Parameter ) -> str :
26
+ metavar = old_make_metavar (self )
27
+
28
+ if isinstance (self , click .Option ) and self .multiple :
29
+ metavar += " *"
30
+
31
+ return metavar
32
+
33
+
34
+ click .Parameter .make_metavar = my_make_metavar # type: ignore[method-assign]
35
+
22
36
23
37
class RobotCodeFormatter (logging .Formatter ):
24
38
def __init__ (self , * args : Any , ** kwargs : Any ) -> None :
@@ -38,8 +52,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
38
52
multiple = True ,
39
53
show_envvar = True ,
40
54
help = """\
41
- Config file to use. Can be specified multiple times.
42
- If not specified, the default config file is used.
55
+ Config file to use. If not specified, the default config file is used.
43
56
""" ,
44
57
)
45
58
@click .option (
@@ -50,16 +63,14 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
50
63
multiple = True ,
51
64
show_envvar = True ,
52
65
help = """\
53
- The Execution Profile to use. Can be specified multiple times.
54
- If not specified, the default profile is used.
66
+ The Execution Profile to use. If not specified, the default profile is used.
55
67
""" ,
56
68
)
57
69
@click .option (
58
70
"-r" ,
59
71
"--root" ,
60
72
"root" ,
61
73
type = click .Path (exists = True , path_type = Path , dir_okay = True , file_okay = False , resolve_path = True ),
62
- multiple = False ,
63
74
show_envvar = True ,
64
75
help = "Specifies the root path to be used for the project. It will be automatically detected if not provided." ,
65
76
)
@@ -157,8 +168,8 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
157
168
type = click .Path (exists = False , resolve_path = False , path_type = str ),
158
169
multiple = True ,
159
170
hidden = show_hidden_arguments (),
160
- help = "Default path to use if no path is given or defined in a profile. Can be specified multiple times. "
161
- "**This is an internal option for running in vscode" ,
171
+ help = "Default path to use if no path is given or defined in a profile. "
172
+ "**This is an internal option for running in vscode** " ,
162
173
)
163
174
@click .option (
164
175
"--launcher-script" ,
0 commit comments