summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-07-14 16:30:19 +0200
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-07-22 10:27:17 +0000
commit0c3f431769973adf5c0d48001c2c830e245a669c (patch)
tree227a2a8c790cf48cdc3d01479ae18399889de37b /mkspecs
parent601019e3f42516b5799fe519115f8fbdf44ed18a (diff)
make command line parsing error messages consistent
... by adding some quoting and punctuation. Change-Id: I553171a0c001edc195fcf2e85f0f70bf2cfdd728 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/features/qt_configure.prf12
1 files changed, 6 insertions, 6 deletions
diff --git a/mkspecs/features/qt_configure.prf b/mkspecs/features/qt_configure.prf
index 1a663fe1dc..55b985f587 100644
--- a/mkspecs/features/qt_configure.prf
+++ b/mkspecs/features/qt_configure.prf
@@ -63,7 +63,7 @@ defineTest(qtConfCommandline_void) {
opt = $${1}
val = $${2}
!isEmpty(val) {
- qtConfAddError("Command line option $$opt expects no argument ('$$val' given).")
+ qtConfAddError("Command line option '$$opt' expects no argument ('$$val' given).")
return()
}
@@ -110,7 +110,7 @@ defineTest(qtConfValidateValue) {
return(true)
}
- qtConfAddError("Invalid value $$val supplied to command line option '$$opt'.")
+ qtConfAddError("Invalid value '$$val' supplied to command line option '$$opt'.")
return(false)
}
@@ -120,7 +120,7 @@ defineTest(qtConfCommandline_string) {
isEmpty(val): val = $$qtConfGetNextCommandlineArg()
contains(val, "^-.*")|isEmpty(val) {
- qtConfAddError("No value supplied to command line option $$opt")
+ qtConfAddError("No value supplied to command line option '$$opt'.")
return()
}
@@ -154,7 +154,7 @@ defineTest(qtConfCommandline_addString) {
isEmpty(val): val = $$qtConfGetNextCommandlineArg()
contains(val, "^-.*")|isEmpty(val) {
- qtConfAddError("No value supplied to command line option $$opt")
+ qtConfAddError("No value supplied to command line option '$$opt'.")
return()
}
@@ -200,7 +200,7 @@ defineTest(qtConfParseCommandLine) {
opt = $$replace(c, "^--?([^-].*)", "\\1")
val =
} else {
- error("Invalid command line parameter $$c")
+ error("Invalid command line parameter '$$c'.")
}
type = $$eval(config.commandline.options.$${opt})
@@ -225,7 +225,7 @@ defineTest(qtConfParseCommandLine) {
}
isEmpty(type): \
- error("Unknown command line option $$c")
+ error("Unknown command line option '$$c'.")
call = "qtConfCommandline_$${type}"
!defined($$call, test): \