changeset 22481:541a20a4961c

mkoctfile: alias --dry-run option to --just-print because it's very common.
author Carnë Draug <carandraug@octave.org>
date Wed, 14 Sep 2016 18:52:26 +0100
parents eb0146564805
children ca03f89e9f2a 9e90abc3718e
files src/mkoctfile.in.cc
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/mkoctfile.in.cc	Tue Sep 13 19:45:44 2016 +0200
+++ b/src/mkoctfile.in.cc	Wed Sep 14 18:52:26 2016 +0100
@@ -312,7 +312,8 @@
 "\n"
 "  -s, --strip             Strip output file.\n"
 "\n"
-"  -n, --just-print        Print commands, but do not execute them.\n"
+"  -n, --just-print, --dry-run\n"
+"      Print commands, but do not execute them.\n"
 "\n"
 "  -v, --verbose           Echo commands as they are executed.\n"
 "\n"
@@ -536,7 +537,7 @@
           else
             std::cerr << "mkoctfile: output filename missing" << std::endl;
         }
-      else if (arg == "-n" || arg == "--just-print")
+      else if (arg == "-n" || arg == "--dry-run" || arg == "--just-print")
         {
           printonly = true;
         }