Skip to content
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

Uncaught Arg.Bad with some commandlines #7460

Closed
vicuna opened this issue Jan 13, 2017 · 2 comments
Closed

Uncaught Arg.Bad with some commandlines #7460

vicuna opened this issue Jan 13, 2017 · 2 comments
Assignees
Labels

Comments

@vicuna
Copy link

vicuna commented Jan 13, 2017

Original bug ID: 7460
Reporter: @stedolan
Assigned to: @gasche
Status: resolved (set by @gasche on 2017-01-14T21:51:21Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.04.0
Fixed in version: 4.04.1+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @gasche

Bug description

In both 4.03.0 and 4.04.0, ocamlc responds to unknown options with a usage message:

$ ocamlc -wibble
ocamlc: unknown option '-wibble'.
Usage: ocamlc <options> <files>
Options are:
<option list cut>

4.03.0 responds similarly to an unknown file extension:

$ ocamlc wibble.asdf
ocamlc: don't know what to do with wibble.asdf.
Usage: ocamlc <options> <files>
Options are:
<option list cut>

But 4.04.0 and trunk respond badly:

$ ocamlc wibble.asdf
Fatal error: exception Arg.Bad("don't know what to do with wibble.asdf")

ocamlopt has the same issue.

@vicuna
Copy link
Author

vicuna commented Jan 13, 2017

Comment author: @gasche

pull request in #1011

@vicuna
Copy link
Author

vicuna commented Jan 14, 2017

Comment author: @gasche

Fixed in the 4.04 branch by Bernhard Schommer. Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants