Skip to content

Commit

Permalink
Update to clap 4.0.9 (#344)
Browse files Browse the repository at this point in the history
This migrates everything from structopt and clap 3.* to 4.0.9, while
preserving the (sub)command syntax of all the binaries in all the
crates in this repo.
  • Loading branch information
kulakowski-wasm authored Oct 4, 2022
1 parent a278814 commit 9cab263
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/wit-component/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@ fn parse_interface(name: Option<String>, path: &Path) -> Result<Interface> {
#[clap(name = "component-encoder", version = env!("CARGO_PKG_VERSION"))]
pub struct WitComponentApp {
/// The path to an interface definition file the component imports.
#[clap(long = "import", value_name = "NAME=INTERFACE", parse(try_from_str = parse_named_interface))]
#[clap(long = "import", value_name = "NAME=INTERFACE", value_parser = parse_named_interface)]
pub imports: Vec<Interface>,

/// The path to an interface definition file the component exports.
#[clap(long = "export", value_name = "NAME=INTERFACE", parse(try_from_str = parse_named_interface))]
#[clap(long = "export", value_name = "NAME=INTERFACE", value_parser = parse_named_interface)]
pub exports: Vec<Interface>,

/// The path of the output WebAssembly component.
#[clap(long, short = 'o', value_name = "OUTPUT")]
pub output: Option<PathBuf>,

/// The default interface the component exports.
#[clap(long, short = 'i', value_name = "INTERFACE", parse(try_from_str = parse_unnamed_interface))]
#[clap(long, short = 'i', value_name = "INTERFACE", value_parser = parse_unnamed_interface)]
pub interface: Option<Interface>,

/// Skip validation of the output component.
Expand Down

0 comments on commit 9cab263

Please sign in to comment.