Agnostic baker does not need specific arguments, different from "classical" baker ones
Currently, in the agnostic baker we have the following CLI structure:
./octez-experimental-agnostic-baker --help
Cannot run agnostic baker without any baker arguments. Please refer to the following help:
Usage:
octez-experimental-agnostic-baker [OCTEZ-EXPERIMENTAL-AGNOSTIC-BAKER-COMMANDS] -- [OCTEZ-BAKER-COMMANDS]
OCTEZ-EXPERIMENTAL-AGNOSTIC-BAKER-COMMANDS:
--help: display help
OCTEZ-BAKER-COMMANDS:
Run ./octez-baker-<PROTOCOL_HASH> --help
This is no longer accurate for the following reasons:
- as you can see,
OCTEZ-EXPERIMENTAL-AGNOSTIC-BAKER-COMMANDSonly consists of--help(and--version, but it was not included), and these two are the only commands that are "independent" of the "classical" bakers - in the future, when we get rid of the
./octez-baker-<PROTOCOL_HASH>binaries, how are we going to get theOCTEZ-BAKER-COMMANDSpart?
One approach would be to simply check if the ./octez-experimental-agnostic-baker command is either asking for --help or --version, and these can simply dealt the same way the "classical" baker deal with them. We do not need to connect to any node or find any running protocol for this. Otherwise, we do the normal Lwt cancelling mechanism between consecutive baking processes.