mirror of
https://github.com/flancian/garden.git
synced 2026-08-07 06:56:19 +00:00
autopushed
This commit is contained in:
+2
-2
@@ -49,14 +49,14 @@ class AgoraCmd(click.Command):
|
||||
|
||||
def __call__(self, *args, **kwargs):
|
||||
try:
|
||||
return super(click.ShowUsageOnMissingError, self).__call__(
|
||||
return super(AgoraCmd, self).__call__(
|
||||
*args, standalone_mode=False, **kwargs)
|
||||
except click.MissingParameter as exc:
|
||||
exc.ctx = None
|
||||
exc.show(file=sys.stdout)
|
||||
click.echo()
|
||||
try:
|
||||
super(click.ShowUsageOnMissingError, self).__call__(['--help'])
|
||||
super(AgoraCmd, self).__call__(['--help'])
|
||||
except SystemExit:
|
||||
sys.exit(exc.exit_code)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user