Introduce experimental flag/option#16229
Conversation
1beb509 to
ba48a91
Compare
fd70f82 to
98cad7c
Compare
5c5a463 to
2518378
Compare
2518378 to
83b670d
Compare
83b670d to
17c3e0e
Compare
test/cmdlineTests/standard_cli_import_ast_storage_layout_specifier_missing_expression/args
Outdated
Show resolved
Hide resolved
test/cmdlineTests/standard_output_debuginfo_ethdebug_incompatible/output.json
Outdated
Show resolved
Hide resolved
|
Aside from the few comments I left above the messages seem done. |
I still need to reduce the error messages where incorrect usage (no --experimental) lists all of the experimental options instead of the one that triggered the error message. |
|
Yes. I meant adjusting the wording of messages based on the doc specifically. |
|
@cameel what do you want for the metadata changelog entry?
|
|
How about this?
This would cover both the JSON flag (new) and the CBOR flag (modified) and more concretely explain how that's different from what we had. |
cameel
left a comment
There was a problem hiding this comment.
ok, you win this time. But here are a few last ones to keep you up at night :P
| if (!_forHelp) // Note: We intentionally keep this undocumented for now. | ||
| outputOptions.add_options() | ||
| ( | ||
| g_strEOFVersion.c_str(), | ||
| // Declared as uint64_t, since uint8_t will be parsed as character by boost. | ||
| po::value<uint64_t>()->value_name("version")->implicit_value(1), | ||
| "Select desired EOF version. Currently the only valid value is 1. " | ||
| "If not specified, legacy non-EOF bytecode will be generated." | ||
| ) | ||
| ( | ||
| g_strYul.c_str(), "The typed Yul dialect is no longer supported. For regular Yul compilation use --strict-assembly instead." | ||
| ) | ||
| ; | ||
| outputOptions.add_options() | ||
| ( | ||
| g_strEOFVersion.c_str(), | ||
| // Declared as uint64_t, since uint8_t will be parsed as character by boost. | ||
| po::value<uint64_t>()->value_name("version")->implicit_value(1), | ||
| "(experimental) Select desired EOF version. Currently the only valid value is 1. " | ||
| "If not specified, non-EOF bytecode will be generated." | ||
| ) | ||
| ( | ||
| g_strYul.c_str(), | ||
| "(disabled) Switch to typed Yul mode. The typed Yul dialect is no longer supported. " | ||
| "For regular Yul compilation use --strict-assembly instead." | ||
| ) |
There was a problem hiding this comment.
This probably unintentionally folded --yul from undocumented into outputOptions
There was a problem hiding this comment.
Ah, good point, I'll move it to alternative input modes in #16505
There was a problem hiding this comment.
It was previously hidden from --help, I am already doing that here
There was a problem hiding this comment.
Ah, we're getting rid of it. Even better.
Under development, don't review yet.
Partially (for now) implements #16123