summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2013-11-12 19:42:41 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-20 08:03:59 +0100
commitd1990a71323cad1f431969506d8b1c1dfc2fa0ac (patch)
treebb3bc0008a85a15e703d4961901644004bddaa5b /configure
parentc9692fbd6e92db126ca1bf446be515666079e44d (diff)
don't automatically display help on error
it's entirely pointless to flood the user with information and force him to scroll back when he most likely just made a typo. apart from that, this reduces the data dependencies, thus easing further refactoring. Change-Id: I7b24274d453de54a4f02481a66d77e27d4ab0657 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 2 insertions, 7 deletions
diff --git a/configure b/configure
index 94eb0bfd6a..f8e3b9e68b 100755
--- a/configure
+++ b/configure
@@ -1357,7 +1357,6 @@ while [ "$#" -gt 0 ]; do
esac
if [ "$UNKNOWN_ARG" = "yes" ]; then
echo "$1: unknown argument"
- OPT_HELP=yes
ERROR=yes
shift
continue
@@ -2254,7 +2253,6 @@ while [ "$#" -gt 0 ]; do
fi
if [ "$ERROR" = "yes" ]; then
echo "$CURRENT_OPT: unknown argument"
- OPT_HELP=yes
fi
;;
v|verbose)
@@ -2429,10 +2427,10 @@ while [ "$#" -gt 0 ]; do
esac
if [ "$UNKNOWN_OPT" = "yes" ]; then
echo "${CURRENT_OPT}: invalid command-line switch"
- OPT_HELP=yes
ERROR=yes
fi
done
+[ "x$ERROR" = "xyes" ] && exit 1
# update QT_CONFIG to show our current predefined configuration
CFG_QCONFIG_PATH=$relpath/src/corelib/global/qconfig-${CFG_QCONFIG}.h
@@ -2454,7 +2452,7 @@ minimal|small|medium|large|full)
echo >&2 " $relpath/src/corelib/global/qconfig-${CFG_QCONFIG}.h"
echo >&2 " or"
echo >&2 " $CFG_QCONFIG_PATH"
- OPT_HELP=yes
+ exit 1
fi
fi
esac
@@ -3285,9 +3283,7 @@ fi
# help - interactive parts of the script _after_ this section please
#-------------------------------------------------------------------------------
-# next, emit a usage message if something failed.
if [ "$OPT_HELP" = "yes" ]; then
- [ "x$ERROR" = "xyes" ] && echo
if [ "$CFG_NIS" = "no" ]; then
NSY=" "
NSN="*"
@@ -3781,7 +3777,6 @@ EOF
fi
- [ "x$ERROR" = "xyes" ] && exit 1
exit 0
fi # Help