Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace clap attributes with command and arg #7658

Merged
merged 1 commit into from Dec 8, 2023

Conversation

iawia002
Copy link
Contributor

@iawia002 iawia002 commented Dec 8, 2023

While reading the code, I noticed that we were mixing clap's clap, command, arg, and structopt attributes, and it seemed quite messy, and even though #[clap()] still works, #[arg()] and #[command()] are now recommended since clap v4, ref clap-rs/clap#4180.

So this patch standardizes them, eliminating the use of outdated clap attributes and removing some meaningless name configurations.

@iawia002 iawia002 requested review from a team as code owners December 8, 2023 10:43
@iawia002 iawia002 requested review from elliottt and pchickey and removed request for a team December 8, 2023 10:43
@@ -55,9 +55,8 @@ fn parse_preloads(s: &str) -> Result<(String, PathBuf)> {

/// Runs a WebAssembly module
#[derive(Parser, PartialEq)]
#[structopt(name = "run")]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually won't work, if we want to change the name, we need to config it in https://github.com/bytecodealliance/wasmtime/blob/3b61c511a0b152d2bb40343b87b5fb1e70a87564/src/bin/wasmtime.rs#L49C1-L51

@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator isle Related to the ISLE domain-specific language winch Winch issues or pull requests labels Dec 8, 2023
Copy link

github-actions bot commented Dec 8, 2023

Subscribe to Label Action

cc @cfallin, @fitzgen, @saulecabrera

This issue or pull request has been labeled: "cranelift", "isle", "winch"

Thus the following users have been cc'd because of the following labels:

  • cfallin: isle
  • fitzgen: isle
  • saulecabrera: winch

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@alexcrichton alexcrichton added this pull request to the merge queue Dec 8, 2023
Merged via the queue into bytecodealliance:main with commit f9f8a4d Dec 8, 2023
19 checks passed
@iawia002 iawia002 deleted the clap-cleanup branch December 12, 2023 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift Issues related to the Cranelift code generator isle Related to the ISLE domain-specific language winch Winch issues or pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants