From 50037a82e822511af324704fcc455c4d3cc78708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Wed, 7 Apr 2021 23:41:40 +0200 Subject: [PATCH] Do not accept `--parachain-id` and `--chain` together (#393) --- cumulus/rococo-parachains/src/cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cumulus/rococo-parachains/src/cli.rs b/cumulus/rococo-parachains/src/cli.rs index 011f215c8b..7c4375fb7d 100644 --- a/cumulus/rococo-parachains/src/cli.rs +++ b/cumulus/rococo-parachains/src/cli.rs @@ -60,7 +60,7 @@ pub struct ExportGenesisStateCommand { pub output: Option, /// Id of the parachain this state is for. - #[structopt(long, default_value = "100")] + #[structopt(long, default_value = "100", conflicts_with = "chain")] pub parachain_id: u32, /// Write output in binary. Default is to write in hex. @@ -68,7 +68,7 @@ pub struct ExportGenesisStateCommand { pub raw: bool, /// The name of the chain for that the genesis state should be exported. - #[structopt(long)] + #[structopt(long, conflicts_with = "parachain-id")] pub chain: Option, }