Commit Graph

45 Commits (c1e2080803819d2bc78cc56e87cb85a8d97fe49f)

Author SHA1 Message Date
Alain Frisch a21eaeaa40 GPR#254: @ocaml.arg_on_literal_pattern attribute on constructors
to warn when the argument is matches against a constant pattern.
This attributes is applied on predefined exception constructors
which take an purely informational (with no stability guarantee)
message.

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16502 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-15 12:30:10 +00:00
Damien Doligez 031cffd155 merge branch 4.02 from release 4.02.0 to release 4.02.1
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15558 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-15 13:34:58 +00:00
Damien Doligez 34752cdc5a minor clean-ups
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14642 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-04-18 15:29:56 +00:00
Damien Doligez 493704f300 PR#5827: provide a dynamic command line parsing mechanism
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13772 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-06-13 11:26:16 +00:00
Damien Doligez c63f9e0957 fix a few problems with whitespace and over-long lines
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13393 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-09 22:38:52 +00:00
Damien Doligez def31744f9 remove all $Id keywords
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-15 17:50:56 +00:00
Alain Frisch e489d6e3f4 Eliminate useless rec.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12507 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-05-29 12:52:44 +00:00
Jonathan Protzenko 632cea70f8 Followup fix to #5437: make sure [align] doesn't add padding to undocumented options, so that these don't show up when passed to [parse] or [usage].
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11946 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-23 13:34:13 +00:00
Jonathan Protzenko b47d5b20f2 Fix #5437: when registering an option with Arg, if the option has an empty doc string, do not include it when printing the usage.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11939 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-22 14:04:18 +00:00
Damien Doligez 3b507dd1aa renaming of Objective Caml to OCaml and cleanup of copyright headers
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-27 14:17:02 +00:00
Damien Doligez c91db736b1 merge changes from 3.12.0 to 3.12.1
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11123 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-20 09:17:07 +00:00
Damien Doligez 9ea5edac9a merge changes 3.10.0 -> 3.10.1
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8768 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2008-01-11 16:13:18 +00:00
Xavier Leroy 63c1789b5e Fusion des modifs faites sur la branche release jusqu'a la release 3.08.0
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6553 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-07-13 12:25:21 +00:00
Damien Doligez 97ed033e88 PR#2297, suite
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6384 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-06-11 23:45:46 +00:00
Damien Doligez 48d626ac16 PR#1931
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5934 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-11-19 14:01:23 +00:00
Pierre Weis fa91038ef2 Suite à la remarque de Didier.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5888 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-10-27 10:37:31 +00:00
Damien Doligez ed53ef381a bug findlib/Stolpmann
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5735 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-07-24 18:23:54 +00:00
Damien Doligez 12690ec2d8 bug de currification
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5648 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-07-03 13:17:09 +00:00
Damien Doligez 901936498a changement de parse_argv en cas d'erreur
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5604 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-06-19 18:13:31 +00:00
Damien Doligez 0b2e6f5f7c PR#1709
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5591 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-06-12 11:13:40 +00:00
Damien Doligez 313d77d1cb PR#1532
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5578 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-05-23 14:34:23 +00:00
Pierre Weis 1d52692ccf Adding new arguments types: boolean with spec Bool for function taking
a boolean as argument, and tuples with spec Tuple of spec list for
functions that takes more than one argument in turn on the command
line. For instance Arg.(Tuple [Arg.Int f; Arg.Bool b; Arg.Int g])
specifies an option that will take 3 elements on the command line and
will call f, b, and g in turn with converted values of the
corresponding types.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5505 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-04-25 10:19:35 +00:00
Damien Doligez 8a20bd757d completude de la doc, typo sur anon_fun
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5434 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-03-12 16:36:28 +00:00
Pierre Weis 6cdad3430c adding some semantics on the string type for specs
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5316 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-12-08 15:17:30 +00:00
Damien Doligez faff950d11 petit glitch
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5229 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-11-02 21:47:02 +00:00
Damien Doligez d4bd2173aa PR#1200
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5228 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-11-02 21:24:30 +00:00
Pierre Weis ae91006786 Documentation + parse_argv introduction.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4557 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-23 16:30:01 +00:00
Pierre Weis e40ea8f198 Generalization of Arg.parse into Arg.parse_array: we now can parse an
arbitrary string array built during program execution.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4556 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-22 20:46:06 +00:00
Pierre Weis f187b04ee0 Parsing of float arguments was not properly handled in case of invalid
argument.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4550 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-21 10:45:20 +00:00
Xavier Leroy 7501784c80 MAJ en-tetes pour mentionner la 'special exception' sur la LGPL
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4144 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-07 13:41:02 +00:00
Damien Doligez dcbb92b2d0 typo
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3646 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-08-21 18:49:22 +00:00
Damien Doligez f5759d294a arg: ajout --help; random: meilleur init
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3644 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-08-21 15:10:51 +00:00
Damien Doligez dcc3b0ce03 gc.ml, gc.mli: compteurs flottants
arg.ml: affichage option -help


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3399 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-02-05 14:59:24 +00:00
Pierre Weis 2116da4220 Getting rid of obsolete boolean operators & and or
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3359 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-12-28 13:07:42 +00:00
Damien Doligez b870e236eb pas de code d'erreur si option -help
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2626 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-11-29 19:04:07 +00:00
Xavier Leroy cc0f32b054 Changement de la licence
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2553 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-11-17 18:59:06 +00:00
Damien Doligez 1f39b97ded Ajout Arg.Rest.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1906 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1998-04-06 16:33:34 +00:00
Damien Doligez c44e6f999a arg.ml, arg.mli, string.mli: amelioration de la doc
array.mli, array.ml, random.ml: create -> make (coherence avec String)
sys.ml, sys.mli: ajout max_string_length, max_array_length


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1706 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-09-11 15:10:23 +00:00
Damien Doligez cc9c01f613 Exporter la position de l'argument courant
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1635 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-07-03 14:15:35 +00:00
Damien Doligez 901222ceae Ajout de [Arg.usage].
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1091 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-10-24 15:19:22 +00:00
Damien Doligez c602b30b57 Changement du module Arg.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1090 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-10-24 14:17:48 +00:00
Xavier Leroy 2301d778e7 Renommage en Objective Caml
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@782 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-04-30 14:53:58 +00:00
Xavier Leroy 4832a208b5 Introduction de Arg.Set et Arg.Clear.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@249 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-09-05 12:30:26 +00:00
Xavier Leroy e4066357b1 Ajout des notices de copyright
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@195 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-08-09 15:06:35 +00:00
Xavier Leroy 61bd8ace6b Passage a la version bootstrappee (franchissement du Rubicon)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-05-04 10:15:53 +00:00