Skip to content

Conversation

@allredj
Copy link
Contributor

@allredj allredj commented Jun 26, 2017

During command line parsing, if an unknown option is read, store it and output an error message at parse_options_baset::main.

This adds a message when the command line parser finds an unknown option. Ideally, this should be done using the messaget framework, but parse_options_baset does not inherit from it. All messages produced in this context are directly sent to the standard (as for the help string) or the error outputs.

@allredj allredj self-assigned this Jun 26, 2017
@tautschnig
Copy link
Collaborator

See #910 for comments.

@allredj allredj force-pushed the cmdline-feedback-master branch 3 times, most recently from b85055e to 7035ea1 Compare June 26, 2017 10:56
@allredj
Copy link
Contributor Author

allredj commented Jun 26, 2017

@peterschrammel @tautschnig this is ready for your review.

@allredj allredj requested a review from mgudemann June 27, 2017 07:54
Copy link
Contributor

@mgudemann mgudemann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@tautschnig tautschnig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this now exactly the same as #910 (except that it's going into master)? That is, have all the comments that were taken on board for #910 been addressed here as well?

@allredj
Copy link
Contributor Author

allredj commented Jul 3, 2017

@tautschnig Yes both PRs are identical and all your comments have been addressed.

Copy link
Collaborator

@tautschnig tautschnig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for the info!

@tautschnig tautschnig assigned kroening and unassigned allredj Jul 3, 2017
@tautschnig tautschnig changed the base branch from master to develop August 22, 2017 12:22
@allredj
Copy link
Contributor Author

allredj commented Aug 22, 2017

I think this has already been included into master (via a prior merge I guess). Rebasing the PR on develop resulted in noop. Is it OK to drop this PR @tautschnig?

@tautschnig tautschnig changed the base branch from develop to master August 22, 2017 14:40
@tautschnig tautschnig changed the title Add message for unknown cbmc option [develop->master] Add message for unknown cbmc option Aug 22, 2017
@tautschnig
Copy link
Collaborator

Re-targeted to master.

During command line parsing, if an unknown option is read, store it and
output an error message at parse_options_baset::main

Add regression tests to check the feature.
@allredj allredj force-pushed the cmdline-feedback-master branch from 7035ea1 to 7332fb8 Compare August 22, 2017 14:59
@tautschnig tautschnig changed the title [develop->master] Add message for unknown cbmc option Add message for unknown cbmc option Sep 2, 2017
@allredj
Copy link
Contributor Author

allredj commented Jun 13, 2018

@peterschrammel Can I close this? It's been in test-generator for a year now and it seems to have been integrated into jbmc in the meantime:

> jbmc --foo
...
Unknown option: --foo

@peterschrammel
Copy link
Member

If it is already in cbmc/develop then close.

@allredj
Copy link
Contributor Author

allredj commented Jun 13, 2018

Verified already in cbmc/develop.

@allredj allredj closed this Jun 13, 2018
@allredj allredj deleted the cmdline-feedback-master branch June 13, 2018 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants