Skip to content

Commit

Permalink
Add URL validator to DAC URL CLI parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
khssnv committed Sep 21, 2023
1 parent 99e61a5 commit 6ae8504
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ sc-cli = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrat
sc-service = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", optional = true, branch = "polkadot-v0.9.30" }
frame-benchmarking-cli = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate", optional = true, branch = "polkadot-v0.9.30" }
try-runtime-cli = { version = "0.10.0-dev", git = "https://github.com/paritytech/substrate", optional = true , branch = "polkadot-v0.9.30" }
url = "2.4.1"

# Local
cere-service = { path = "../node/service", default-features = false, optional = true }
Expand Down
2 changes: 1 addition & 1 deletion cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub struct RunCmd {
pub enable_ddc_validation: bool,

/// DAC DataModel HTTP endpoint to retrieve DDC activity data for validation.
#[clap(long, requires = "enable-ddc-validation")]
#[clap(long, requires = "enable-ddc-validation", validator = url::Url::parse)]
pub dac_url: Option<String>,

/// Force using Cere Dev runtime.
Expand Down

0 comments on commit 6ae8504

Please sign in to comment.