-
Notifications
You must be signed in to change notification settings - Fork 152
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
Improving kompile's --help
and --help-hidden
messages using descriptors
#3638
Conversation
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.
Looking nice!
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.
Ah, there are more options for kprove and kast. Did you check those as well?
… Haskell Backends
llvm-backend/src/main/java/org/kframework/backend/llvm/LLVMKompileOptions.java
Outdated
Show resolved
Hide resolved
I'll implement these changes in |
Follow up of #3619 and #3638! This PR enhances the usability of `kast --help` and `kast --help-hidden` by providing flag descriptors to help the user understand when an argument needs to be provided to the flag. Ex.: Before ``` kast --help Usage: kast [options] <file> Options: --color Use colors in output. Default is on. Possible Values: [OFF, ON, EXTENDED] ``` Now: ``` Usage: kast [options] <file> Options: --color <mode> Use colors in output. Default: ON Possible Values: [OFF, ON, EXTENDED] ``` Among others, this PR introduces the following arguments to the respective parameters: <!DOCTYPE html> parameter | argument -- | -- --color | \<mode> --expression, -e | \<expression> --input, -i | \<mode> --module, -m | \<module> --output, -o | \<mode> --output-file | \<file> --output-flatten | \<KLabels> --output-omit | \<KLabels> --output-tokast | \<KLabels> --output-tokenize | \<KLabels> --sort, -s | \<sort> --steps | \<steps> --definition | \<path> --directory, -d | \<path>
Follow up of #3619, #3638, and #3642! This PR enhances the usability of `kprove --help` and `kprove --help-hidden` by providing flag descriptors to help the user understand when an argument needs to be provided to the flag. Ex.: Before ``` Usage: kprove [options] <file> Options: --branching-allowed Number of branching events allowed before a forcible stop. Default: 2147483647 ``` Now: ``` Usage: kprove [options] <file> Options: --branching-allowed <value> Number of branching events allowed before a forcible stop. Default: 2147483647 ``` Among others, this PR introduces the following arguments to the respective parameters: parameter | argument -- | -- --branching-allowed | \<number> --claims | \<labels> --color | \<mode> --debug-script | \<file> --default-claim-type | \<type> --definition | \<path> --depth | \<number> --emit-json-spec | \<file> --exclude | \<labels> --output, -o | \<mode> --output-file | \<file> --output-flatten | \<KLabels> --output-omit | \<KLabels> --output-tokast | \<KLabels> --output-tokenize | \<KLabels> --spec-module, -sm | \<name> --trusted | \<labels> --haskell-backend-command | \<command> --haskell-backend-home | \<directory> --smt-timeout | \<milliseconds>
Fixes #3619
This PR enhances the usability of
kompile --help
andkompile --help-hidden
by providing descriptors to the flags to help the user understand when an argument needs to be provided to the flag.Ex.:
Before
Now: