Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Add the ability to run polkadot using a config file #3659

Open
s3krit opened this issue Aug 18, 2021 · 0 comments
Open

Add the ability to run polkadot using a config file #3659

s3krit opened this issue Aug 18, 2021 · 0 comments
Labels
J0-enhancement An additional feature request. U3-nice_to_have Issue is worth doing eventually.

Comments

@s3krit
Copy link
Contributor

s3krit commented Aug 18, 2021

The polkadot binary currently supports 84 unique command-line flags for controlling its operation (some mutually exclusive, some not). For users with larger lists of flags to invoke the binary with, this could be better served by allowing them to run using a config-file. We could ship the binary with a default config file which could fairly verbosely explain (via comments) the impact and intent, and examples of these options, without needing a 381-line output of polkadot --help.

Questions:

  • Should CLI flags be moved to a config file format, or simply copied and flags take precedence over config file directives
  • What format should we use for the configuration file? (iirc we use clap for the flags, so maybe that already supports some method of transposing these to a config file format)
  • If we move certain directions to being controlled by a config file rather than CLI flags, this would constitute a breaking change for a lot of node operators, so how should we handle this?
@s3krit s3krit added J0-enhancement An additional feature request. U3-nice_to_have Issue is worth doing eventually. labels Aug 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
J0-enhancement An additional feature request. U3-nice_to_have Issue is worth doing eventually.
Projects
None yet
Development

No branches or pull requests

2 participants
@s3krit and others