-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Conversation
}; | ||
|
||
auto vmOpts = vmProgramOptions(); | ||
po::parsed_options parsed = po::command_line_parser(argc, argv) |
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.
how do I get back parsed vm option from Options::get() ?
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.
You don't. This is only to handle the VM options in single place (VMFactory.cpp). I don't care about the rest of the options. There was a PR introducing program_options in testeth, why is it not merged yet?
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 believe it was in gihub issue
/// The additional parser for EVM-C options. The options should look like | ||
/// `--evmc name=value` or `--evmc=name=value`. The boost pass the strings | ||
/// of `name=value` here. This function splits the name and value or reports | ||
/// the syntax error if the `=` character is missing. |
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.
How to pass multiple keys? --evmc debug=true --evmc tracing=true
?
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.
Yes.
Codecov Report
@@ Coverage Diff @@
## develop #4771 +/- ##
===========================================
+ Coverage 60.61% 60.79% +0.17%
===========================================
Files 347 347
Lines 27290 27333 +43
Branches 2847 2848 +1
===========================================
+ Hits 16543 16617 +74
+ Misses 9750 9728 -22
+ Partials 997 988 -9 |
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.
Looks good to me.
This option expects value like this
--evmc name=value
. The option is passed then to an EVM-C instance.