diff options
author | Maxime Dénès <mail@maximedenes.fr> | 2017-08-01 13:02:09 +0200 |
---|---|---|
committer | Maxime Dénès <mail@maximedenes.fr> | 2017-08-01 13:02:09 +0200 |
commit | ec0fcba55a6849fa37438809df4783e7c5aa3a89 (patch) | |
tree | bf16fa6112fbedea69a295814d9f6bb03863e0f6 | |
parent | 89fa6804337ca0ca091b32261d0b4684ba30432d (diff) | |
parent | 5fa08a5dd84f38d311dccfc1de5c1a204b6042b6 (diff) |
Merge PR #917: Moving --print-version to -print-version for consistency.
-rw-r--r-- | tools/coqc.ml | 2 | ||||
-rw-r--r-- | toplevel/coqtop.ml | 2 | ||||
-rw-r--r-- | toplevel/usage.ml | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tools/coqc.ml b/tools/coqc.ml index 66aee56bd..4595af6e8 100644 --- a/tools/coqc.ml +++ b/tools/coqc.ml @@ -86,7 +86,7 @@ let parse_args () = Envars.print_config stdout Coq_config.all_src_dirs; exit 0 - |"--print-version" :: _ -> + | ("-print-version" | "--print-version") :: _ -> Usage.machine_readable_version 0 (* Options for coqtop : a) options with 0 argument *) diff --git a/toplevel/coqtop.ml b/toplevel/coqtop.ml index 2cf8c7c2a..8fe27b3b9 100644 --- a/toplevel/coqtop.ml +++ b/toplevel/coqtop.ml @@ -583,7 +583,7 @@ let parse_args arglist = |"-type-in-type" -> set_type_in_type () |"-unicode" -> add_require "Utf8_core" |"-v"|"--version" -> Usage.version (exitcode ()) - |"--print-version" -> Usage.machine_readable_version (exitcode ()) + |"-print-version"|"--print-version" -> Usage.machine_readable_version (exitcode ()) |"-where" -> print_where := true |"-xml" -> Flags.xml_export := true diff --git a/toplevel/usage.ml b/toplevel/usage.ml index f8c7b114c..962bb4302 100644 --- a/toplevel/usage.ml +++ b/toplevel/usage.ml @@ -57,7 +57,7 @@ let print_usage_channel co command = \n -where print Coq's standard library location and exit\ \n -config, --config print Coq's configuration information and exit\ \n -v, --version print Coq version and exit\ -\n --print-version print Coq version in easy to parse format and exit\ +\n -print-version print Coq version in easy to parse format and exit\ \n -list-tags print highlight color tags known by Coq and exit\ \n\ \n -quiet unset display of extra information (implies -w \"-all\")\ |