pikers / piker

(e2e) foss trading for non-tinas
GNU Affero General Public License v3.0
102 stars 17 forks source link

Support `--pdb` flag to all `piker` CLI subcmds #493

Open goodboy opened 1 year ago

goodboy commented 1 year ago

Currently only a subset of our CLI (sub-)cmds support passing the --pdb flag when it's actually more broadly useful as a tractor runtime toggle which could be used across all CLI components which open the actor runtime.

I propose to add the --pdb flag support at the piker.cli.cli: click.Group level thus allowing to pass the flag earlier in each command: piker -l cancel --pdb chart btcusdt.binance and removing the duplication in the command options throughout all click.command() definitions.