-
Notifications
You must be signed in to change notification settings - Fork 289
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
Add verbose mode to wasmi cli #957
Conversation
crates/cli/src/args.rs
Outdated
|
||
/// Enable informational messages beyond warnings or errors. | ||
#[clap(long = "verbose")] | ||
verbose: bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not 100% sure but I think it is important that the func_args
field comes last since it takes a variable number of arguments. So please move the verbose
field before it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds fine. Change made.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, if you'd prefer restricting the remaining fuel message to verbose mode already, let me know, and I can do that, too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@tjpalmer Thank you for the Wasmi CLI improvement! :)
Glad to help! Looking forward to the next release! Wasmi is a great project for up-to-date lightweight wasm support. (At least fairly up-to-date with good maintenance and a nice roadmap.) |
Fix #955.
This prevents the initial "executing File ..." message unless
--verbose
is set.The only other informational message I found was the remaining fuel message. I didn't require verbose for this, since it already depends on the fuel option. But it's something to consider in the future perhaps.