]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* config/ltmain.in (opt_help): Defer showing help messages until
authorGary V. Vaughan <gary@gnu.org>
Sun, 29 Aug 2004 15:09:15 +0000 (15:09 +0000)
committerGary V. Vaughan <gary@gnu.org>
Sun, 29 Aug 2004 15:09:15 +0000 (15:09 +0000)
after a possible following --mode argument has been parsed, so we
can handle `libtool --help --mode=foo'.

ChangeLog
config/ltmain.in

index 3867341536d19bb25dd7eaf8687f603e847bbda9..d3d485f61b7e8436d819b8a910b1513695c361ef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-08-29  Gary V. Vaughan  <gary@gnu.org>
+
+       * config/ltmain.in (opt_help): Defer showing help messages until
+       after a possible following --mode argument has been parsed, so we
+       can handle `libtool --help --mode=foo'.
+
 2004-08-29  Gary V. Vaughan  <gary@gnu.org>
 
        We have had shell functions in ltmain.in for a few years without
index fb8cb254c29041cef9fca27337cf143d281b895e..844b68abbc80d080f0d445cf1b7691db0b1bac83 100644 (file)
@@ -186,6 +186,7 @@ execute_dlfiles=
 lo2o="s/\\.lo\$/.${objext}/"
 o2lo="s/\\.${objext}\$/.lo/"
 
+opt_help=false
 opt_duplicate_deps=false
 
 # If this variable is set in any of the actions, the command in it
@@ -673,7 +674,7 @@ Otherwise, only FILE itself is deleted using RM."
 #                      ;;
 
       -\?|-h)          func_usage                                      ;;
-      --help)          func_mode_help                                  ;;
+      --help)          opt_help=:                                      ;;
       --version)       func_version                                    ;;
 
       -*)              func_fatal_help "unrecognized option \`$opt'"   ;;
@@ -684,6 +685,9 @@ Otherwise, only FILE itself is deleted using RM."
     esac
   done
 
+  # Now that we've collected a possible --mode arg, show help if necessary
+  $opt_help && func_mode_help
+
   case $host in
     *cygwin* | *mingw* | *pw32*)
       # don't eliminate duplications in $postdeps and $predeps