mirror of
https://github.com/flancian/garden.git
synced 2026-08-07 15:06:19 +00:00
autopushed
This commit is contained in:
+2
-2
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user