Displaying 7 results from an estimated 7 matches for "has_dash_dash_help".
2016 Jul 18
2
Re: [PATCH v2 2/3] mllib: Use L"..." and S '...' for long and short options.
...ort_options t), hidden_option_description;
> - [ "--long-options" ], Unit (display_long_options t), hidden_option_description;
> - ] in
> -
> - (* Decide whether the help option can be added, and which switches use. *)
> - let has_dash_help = ref false in
> - let has_dash_dash_help = ref false in
> - List.iter (
> - fun (keys, _, _) ->
> - if not (!has_dash_help) then
> - has_dash_help := List.mem "-help" keys;
> - if not (!has_dash_dash_help) then
> - has_dash_dash_help := List.mem "--help" keys;
> - )...
2016 Jul 18
4
[PATCH v2 0/3] mllib: Various fixes and changes to Getopt module.
v1 -> v2:
- Further fixes to Getopt int parsing.
- Completed the L/S changes.
- Fixed the test suite so it passes now. Also we don't need the
special-case tests for 64 bit arch.
Rich.
2016 Jul 15
5
[PATCH 0/3] mllib: Various fixes and changes to Getopt module.
The second patch is obviously not complete yet - for discussion only.
Rich.
2016 Jul 18
0
[PATCH v2 2/3] mllib: Use L"..." and S '...' for long and short options.
...ions" ], Unit (display_short_options t), hidden_option_description;
- [ "--long-options" ], Unit (display_long_options t), hidden_option_description;
- ] in
-
- (* Decide whether the help option can be added, and which switches use. *)
- let has_dash_help = ref false in
- let has_dash_dash_help = ref false in
- List.iter (
- fun (keys, _, _) ->
- if not (!has_dash_help) then
- has_dash_help := List.mem "-help" keys;
- if not (!has_dash_dash_help) then
- has_dash_dash_help := List.mem "--help" keys;
- ) specs;
- let help_keys = [] @
-...
2016 Jul 18
3
[PATCH v4 0/2] mllib: Various fixes and changes to Getopt module.
v3 -> v4:
- Pushed the first patch upstream since it was ACKed.
- Prevent use of M except for the special virt-v2v options.
- Sort the options after added --help etc.
- Make corresponding fixes to the tests.
Rich.
2016 Jul 18
4
[PATCH v3 0/3] mllib: Various fixes and changes to Getopt module.
v2 -> v3:
- Add M variant and test it.
Rich.
2016 Jul 13
3
[PATCH v3 1/2] OCaml tools: add and use a Getopt module
...ptions t), s_"List short options (internal)";
+ [ "--long-options" ], Unit (display_long_options t), s_"List long options (internal)";
+ ] in
+
+ (* Decide whether the help option can be added, and which switches use. *)
+ let has_dash_help = ref false in
+ let has_dash_dash_help = ref false in
+ List.iter (
+ fun (keys, _, _) ->
+ if not (!has_dash_help) then
+ has_dash_help := List.mem "-help" keys;
+ if not (!has_dash_dash_help) then
+ has_dash_dash_help := List.mem "--help" keys;
+ ) specs;
+ let help_keys = [] @
+...