autopushed

This commit is contained in:
2023-09-24 20:33:55 +02:00
parent 2be5adf057
commit 54d53ca826
+2 -2
View File
@@ -49,14 +49,14 @@ class AgoraCmd(click.Command):
def __call__(self, *args, **kwargs): def __call__(self, *args, **kwargs):
try: try:
return super(click.ShowUsageOnMissingError, self).__call__( return super(AgoraCmd, self).__call__(
*args, standalone_mode=False, **kwargs) *args, standalone_mode=False, **kwargs)
except click.MissingParameter as exc: except click.MissingParameter as exc:
exc.ctx = None exc.ctx = None
exc.show(file=sys.stdout) exc.show(file=sys.stdout)
click.echo() click.echo()
try: try:
super(click.ShowUsageOnMissingError, self).__call__(['--help']) super(AgoraCmd, self).__call__(['--help'])
except SystemExit: except SystemExit:
sys.exit(exc.exit_code) sys.exit(exc.exit_code)