Repository navigation
All tools accept -h and --help - #885
Merged
Merged
Conversation
Add DaikonGetopt, a Getopt subclass that throws a UserError describing an unrecognized, ambiguous, or malformed option and handles -h and --help. Use it in Daikon and in the other tools that use Getopt. Remove Diff's -u and -z options, which had no effect. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tools that take no options other than -h and --help now use DaikonGetopt, so they print a usage message for -h and --help and reject other options. Tools that use plume-lib Options exit with status 0 after printing help. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 7, 2026
…menter argument errors on stderr, simplify ambiguity check
…option, report SplitterFactoryTest failures on stderr, shorten Diff error, align Annotate usage
… exiting, report instrumenter option errors in one line, make sentinels final
…enter -h to runtimechecker-options DaikonGetopt again provides nonOptionArgs, argsAfterLeadingOptions, a Supplier-based constructor, and setUsageHint, which codespecs#885-codespecs#888 use. The instrumenter's -h and --help handling belongs to codespecs#888.
… arguments in SampleTester and SplitterFactoryTest, fix --user-defined-invariant spelling
…Test main methods
Member
Author
|
@coderabbitai review |
|
# Conflicts: # doc/CHANGELOG.md
…-all-tools # Conflicts: # doc/CHANGELOG.md # java/daikon/test/BadOptionTest.java
Member
Author
|
@coderabbitai review |
✅ Action performedReview finished.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tools that take no options other than
-h/--help(SplitDtrace, ReadTrace, DtraceNonceFixer) now useDaikonGetopt, so they print usage for-h/--helpand reject other options. Tools that use plume-lib Options (Chicory, DynComp, AnnotateNullable, BuildJDK) exit with status 0 after printing help.New method
DaikonGetopt.nonOptionArgsprocesses the arguments of such a tool. #887 adds the same method.🤖 Generated with Claude Code