don't error() out on user errors
use the proper error reporting mechanism instead. Change-Id: I3afb0086e5cd672d3c0f441c429682850202024f Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
0c3f431769
commit
09110cdbea
@ -200,7 +200,8 @@ defineTest(qtConfParseCommandLine) {
|
||||
opt = $$replace(c, "^--?([^-].*)", "\\1")
|
||||
val =
|
||||
} else {
|
||||
error("Invalid command line parameter '$$c'.")
|
||||
qtConfAddError("Invalid command line parameter '$$c'.")
|
||||
return()
|
||||
}
|
||||
|
||||
type = $$eval(config.commandline.options.$${opt})
|
||||
@ -224,8 +225,10 @@ defineTest(qtConfParseCommandLine) {
|
||||
next()
|
||||
}
|
||||
|
||||
isEmpty(type): \
|
||||
error("Unknown command line option '$$c'.")
|
||||
isEmpty(type) {
|
||||
qtConfAddError("Unknown command line option '$$c'.")
|
||||
return()
|
||||
}
|
||||
|
||||
call = "qtConfCommandline_$${type}"
|
||||
!defined($$call, test): \
|
||||
|
Loading…
Reference in New Issue
Block a user