Open nicolasochem opened 3 years ago
I think it should rather be redundant like in tezos-client: every argument can also be in the config and vice versa?
Yes, although in some cases it's difficult to input some data with CLI arguments (like the table of delegates and where you want their rewards to go).
I see this as part of #466 as well. A general overhaul of the CLI
I suggest to dramatically decrease the number of CLI arguments and move most of them to config.
The args that should remain are:
Right now there is a separation between CLI args and the TRD config file.. This separation feels arbitrary to me.
I suggest a new criteria:
Does the parameter apply to this one unique run or to all my runs?
If it's unique to this run, it should go to CLI args. Otherwise, it belongs to the config file.
The rationale is that configuration is something you do when you set things up and then are unlikely to change. For example, you are not very likely to switch RPC backend, signer endpoint or RELEASE_OVERRIDE once you start baking. For sure, you wouldn't want to change it each time you run the command.
You may however want to re-run a failed payment run, or perform a one-shot payment run. In this case, it makes sense to specify this in the args, because your intent may change each time you run the command.