En regardant la commande calice, il existe des options de débogage, mais
$ chalice --help
Usage: chalice [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
--project-dir TEXT The project directory path (absolute or
relative).Defaults to CWD
--debug / --no-debug Print debug logs to stderr.
--help Show this message and exit.
Commands:
delete
deploy
dev Development and debugging commands for chalice.
gen-policy
generate-models Generate a model from Chalice routes.
generate-pipeline Generate a cloudformation template for a starter CD...
generate-sdk
invoke Invoke the deployed lambda function NAME.
local
logs
new-project
package
url
Si vous faites ce qui suit, vous vous fâcherez ...
Se mettre en colère
$ chalice package build --debug
Usage: chalice package [OPTIONS] OUT
Try 'chalice package --help' for help.
Error: no such option: --debug
Apparemment, si vous voulez passer une option, vous devez la passer avant la sous-commande.
Ou plutôt, si vous regardez attentivement le premier, ce sera calice [OPTIONS] COMMAND [ARGS]
, et --debug
est une liste de ʻOPTIONS`, vous devez donc le définir ici ...
C'est acceptable
$ chalice --debug package build
2020-05-04 19:16:44,435 botocore.hooks [DEBUG] Changing event name from creating-client-class.iot-data to creating-client-class.iot-data-plane
2020-05-04 19:16:44,440 botocore.hooks [DEBUG] Changing event name from before-call.apigateway to before-call.api-gateway
2020-05-04 19:16:44,441 botocore.hooks [DEBUG] Changing event name from request-created.machinelearning.Predict to request-created.machine-learning.Predict
2020-05-04 19:16:44,443 botocore.hooks [DEBUG] Changing event name from before-parameter-build.autoscaling.CreateLaunchConfiguration to before-parameter-build.auto-scaling.CreateLaunchConfiguration
2020-05-04 19:16:44,443 botocore.hooks [DEBUG] Changing event name from before-parameter-build.route53 to before-parameter-build.route-53
2020-05-04 19:16:44,444 botocore.hooks [DEBUG] Changing event name from request-created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search
(Omission)
On m'a dit que je n'avais pas remarqué que les options étaient clairement séparées car je passais parfois un argument commençant par --
à ʻARGS, comme
calice package --stage local`.
Recommended Posts