Typer allows multiple uses of the same option, and then just uses whichever was specified last. E.g. in btcli w balance --network ws://127.0.0.1:9945 --network local, it would use local and completely ignore the specified chain endpoint. This is usually not a big deal, but we have a number of aliases for network specifically:
Typer allows multiple uses of the same option, and then just uses whichever was specified last. E.g. in
btcli w balance --network ws://127.0.0.1:9945 --network local
, it would uselocal
and completely ignore the specified chain endpoint. This is usually not a big deal, but we have a number of aliases fornetwork
specifically:This can cause some confusion amongst people who are used to specifying
--subtensor.network
and--subtensor.chain_endpoint
.~We can validate a single use of the commands with a callback, like so:~ This does not work: