CLI: Make --dev conflict with --chain (#6146)

If we are running `--dev` chain, we should forbid the `--chain`
argument. The `--dev` chain is always special by only having one
authority etc and some other chain spec is probably not setup for this
correctly. In the end `--dev` is just a shortcut for `--validator --alice`.
This commit is contained in:
Bastian Köcher
2020-05-26 21:25:15 +02:00
committed by GitHub
parent 0f28f4bf49
commit 8a7c2c3142
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ pub struct RunCmd {
pub sentry: Vec<MultiaddrWithPeerId>,
/// Disable GRANDPA voter when running in validator mode, otherwise disable the GRANDPA observer.
#[structopt(long = "no-grandpa")]
#[structopt(long)]
pub no_grandpa: bool,
/// Experimental: Run in light client mode.