fal-ai / fal

⚡ Fastest way to serve open source ML models to millions
https://fal.ai/docs
Apache License 2.0
509 stars 44 forks source link

feat(cli): add ability to use --debug on all levels #117

Closed efiop closed 6 months ago

efiop commented 6 months ago

Currently if you want to use --debug, you have to specify it right after fal and any other place will result in an error, e.g.

$ fal function serve ... --debug
No such option: --debug

This PR allows it to be used with any subcommand.

efiop commented 6 months ago

For the record: the tests are failing because I'm creating a PR from my fork which means the secrets are not available, but I want to see if I can do something about it (at least in terms of contributor experience) first. Otherwise will just re-send a PR from an internal branch.

efiop commented 6 months ago

Closing in favor of https://github.com/fal-ai/fal/pull/118 for now