[Feature] Handle repeated non standard arguments (#6366)

* remove about message

* handle repeated arguments

* accomodate all the choices from different providers

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
This commit is contained in:
Henrique Joaquim
2024-05-07 14:57:35 +01:00
committed by GitHub
parent 5c0b36cddb
commit 756eebdf07
2 changed files with 89 additions and 19 deletions

View File

@@ -908,11 +908,6 @@ class BaseController(metaclass=ABCMeta):
if "--help" in other_args or "-h" in other_args:
txt_help = parser.format_help() + "\n"
if parser.prog != "about":
txt_help += (
f"For more information and examples, use 'about {parser.prog}' "
f"to access the related guide.\n"
)
session.console.print(f"[help]{txt_help}[/help]")
return None