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
Arg.parse Ocaml 3.07+2 #2637
Comments
Comment author: administrator Bonjour,
Merci pour le rapport de bug. C'est un bug connu de 3.07+2 (#8372) qui est repare dans la version -- Damien |
Comment author: administrator see #8372 -DD 2004-06-02 |
Comment author: administrator
Ok Nicolas |
Original bug ID: 2637
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Bonjour,
J'ai quelques problemes avec les messages d'erreur du module Arg.
L'exemple suivant les reproduit :
------ test.ml
let usage = "This is a test program" in
let spec = [ ("-cp",Arg.String (fun path -> ())," : add classpath") ]
in
Arg.parse spec (fun f -> ()) usage;
ocamlc test.ml -o test.exe
test.exe -cp
Si un argument manque à une commande (-cp attends ici une string), alors le
message d'erreur est corrompu : parfois il s'affiche trois fois, parfois il
est tronqué . En compilation native le probleme est plus facilement
reproductible apparamment.
Pas de probleme non plus avec Arg.usage, mais le probleme se produit aussi
avec Arg.parse_argv si on veut printer les exceptions Arg.Help ou Arg.Bad.
OCaml 3.07+2 - Windows MSVC build.
Nicolas Cannasse
The text was updated successfully, but these errors were encountered: