Skip to content

Commit

Permalink
fix cli and command modules
Browse files Browse the repository at this point in the history
  • Loading branch information
NunoAlexandre committed Aug 19, 2022
1 parent ded64da commit eb04ffe
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 138 deletions.
163 changes: 31 additions & 132 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ members = [
codec = { package = "parity-scale-codec", version = "3.0", default-features = false }
serde = { version = "1.0.106", features = ["derive"] }
futures = { version = "0.3.21", features = ["compat"] }
jsonrpsee = { version = "0.13.0", features = ["server", "macros"] }
jsonrpsee = { version = "0.14.0", features = ["server", "macros"] }
hex-literal = "0.2.1"
log = "0.4.8"
serde_json = "1.0"
Expand Down
4 changes: 2 additions & 2 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub enum Subcommand {
#[derive(Debug, Parser)]
pub struct ExportGenesisStateCommand {
/// Output file name or stdout if unspecified.
#[clap(parse(from_os_str))]
#[clap(value_parser)]
pub output: Option<PathBuf>,

/// Write output in binary. Default is to write in hex.
Expand All @@ -84,7 +84,7 @@ pub struct ExportGenesisStateCommand {
#[derive(Debug, Parser)]
pub struct ExportGenesisWasmCommand {
/// Output file name or stdout if unspecified.
#[clap(parse(from_os_str))]
#[clap(value_parser)]
pub output: Option<PathBuf>,

/// Write output in binary. Default is to write in hex.
Expand Down
Loading

0 comments on commit eb04ffe

Please sign in to comment.