Add --collator flag as alternative to --validator (#222)

* Initial commit

Forked at: 56753b7717
Parent branch: origin/master

* Add --collator flag as alternative to --validator

* Apply suggestions from code review

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
Cecile Tonglet
2020-10-02 12:24:20 +02:00
committed by GitHub
parent 56753b7717
commit ba44e83f68
2 changed files with 10 additions and 3 deletions
+6
View File
@@ -93,6 +93,12 @@ pub struct Cli {
#[structopt(flatten)]
pub run: RunCmd,
/// Run node as collator.
///
/// Note that this is the same as running with `--validator`.
#[structopt(long, conflicts_with = "validator")]
pub collator: bool,
/// Relaychain arguments
#[structopt(raw = true)]
pub relaychain_args: Vec<String>,