@@ -190,6 +190,7 @@ def _add_args_plugin_common(self, parser: ArgumentParser) -> None:
190
190
parser .add_argument (
191
191
"path" ,
192
192
default = "./" ,
193
+ nargs = "?" ,
193
194
help = "The path to the Ansible collection. The default is the "
194
195
"current working directory." ,
195
196
)
@@ -233,6 +234,7 @@ def _add_resource_devcontainer(self, subparser: SubParser[ArgumentParser]) -> No
233
234
"path" ,
234
235
default = "./" ,
235
236
metavar = "path" ,
237
+ nargs = "?" ,
236
238
help = "The destination directory for the devcontainer files. The default is the "
237
239
"current working directory." ,
238
240
)
@@ -264,6 +266,7 @@ def _add_resource_devfile(self, subparser: SubParser[ArgumentParser]) -> None:
264
266
"path" ,
265
267
default = "./" ,
266
268
metavar = "path" ,
269
+ nargs = "?" ,
267
270
help = "The destination directory for the devfile file. The default is the "
268
271
"current working directory." ,
269
272
)
@@ -287,6 +290,7 @@ def _add_resource_execution_env(self, subparser: SubParser[ArgumentParser]) -> N
287
290
"path" ,
288
291
default = "./" ,
289
292
metavar = "path" ,
293
+ nargs = "?" ,
290
294
help = "The destination directory for the execution environment file. "
291
295
"The default is the current working directory." ,
292
296
)
@@ -315,6 +319,7 @@ def _add_resource_patterns(self, subparser: SubParser[ArgumentParser]) -> None:
315
319
"path" ,
316
320
default = "./" ,
317
321
metavar = "path" ,
322
+ nargs = "?" ,
318
323
help = "The path to the Ansible collection. The default is the "
319
324
"current working directory." ,
320
325
)
@@ -337,6 +342,7 @@ def _add_resource_play_argspec(self, subparser: SubParser[ArgumentParser]) -> No
337
342
"path" ,
338
343
default = "./" ,
339
344
metavar = "path" ,
345
+ nargs = "?" ,
340
346
help = "The destination directory for the playbook argspec files. The default is the "
341
347
"current working directory." ,
342
348
)
@@ -363,6 +369,7 @@ def _add_resource_role(self, subparser: SubParser[ArgumentParser]) -> None:
363
369
"path" ,
364
370
default = "./" ,
365
371
metavar = "path" ,
372
+ nargs = "?" ,
366
373
help = "The path to the Ansible collection. The default is the "
367
374
"current working directory." ,
368
375
)
0 commit comments