bitcoin-dev-project/warnet

--flags with CLI commands

Closed this issue · 3 comments

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  

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?

Not even sure argparse can handle this; the only way might be using argv as you had in v1...

I believe this can be closed now since the move back to Click?