Richard W.M. Jones
da02953570
arg: Allow flags such as --flag=arg as well as --flag arg.
...
Allow flags to be followed directly by their argument, separated by an '='
sign. This is consistent with what GNU getopt_long and many other
command line parsing libraries allow.
Fix for the following issue:
http://caml.inria.fr/mantis/view.php?id=5197
2015-11-25 22:18:47 +01: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
834253b976
fix wrong type name: string --> usage_msg
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14578 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-04-12 07:18:39 +00:00
Damien Doligez
1ed1b20201
PR#6245: Minor inconsistencies between related signatures in arg.mli
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14332 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-11-30 22:15:11 +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
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
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
Damien Doligez
0e5ca9dca5
nettoyage
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7164 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-10-25 18:34:07 +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
Maxence Guesdon
2cfb007059
fix: a comment not associated to a type
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6187 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-04-02 15:24:50 +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
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
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
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
Damien Doligez
13356e7c5e
detabisation
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4281 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-01-20 15:12:21 +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
Maxence Guesdon
966c128bc9
commentaires après
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4082 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-03 22:01:28 +00:00
Maxence Guesdon
a692df441c
Modification emplacement et syntaxe des commentaires pour OCamldoc
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3924 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-10-26 22:37:14 +00:00
Jacques Garrigue
ea299bbbc1
passage aux labels stricts
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3696 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-09-06 08:52:32 +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
b234d1769c
detabisation
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2745 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-01-07 16:47:25 +00:00
Jacques Garrigue
296fc05470
Merge olabl branch
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2651 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-11-30 16:07:38 +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
Xavier Leroy
95933de17c
Corrections mineures sur la documentation
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1933 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1998-04-27 09:55:50 +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
036e2d4c00
Doc de Arg.current.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1751 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-11-05 19:44:08 +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
7942914a6e
gc.mli: changement de space_overhead
...
arg.mli: bricoles dans la doc
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1569 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-05-21 15:28:30 +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
d458d0a077
Nettoyage de la doc en commentaires.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@245 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-09-04 12:07:15 +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
d0012c733a
MAJ des commentaires de doc dans les interfaces
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@190 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-08-09 13:15:01 +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