--flags with CLI commands
Closed this issue · 3 comments
pinheadmz commented
Examples:
This scenario accepts arguments:
src/scenarios/miner_std.py --interval=1
but it doesn't work from cli:
warnet run miner_std --interval=1
> No such option: --interval
also:
warnet bcli warnet 0 -netinfo
> No such option: -n
willcl-ark commented
Not sure there is a clean way to do this, without dropping typer (or requiring use of --
in regular usage, which is annoying).
Perhaps bye bye Typer after all?
willcl-ark commented
Not even sure argparse can handle this; the only way might be using argv as you had in v1...
willcl-ark commented
I believe this can be closed now since the move back to Click?