Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
eeaf2550
Commit
eeaf2550
authored
Jul 19, 2017
by
Jan Möbius
Browse files
Merge branch 'fixBatchCommandLine' into 'master'
also parse command line options in batch mode. See merge request
!27
parents
5bec885c
be7fb07a
Changes
1
Hide whitespace changes
Inline
Side-by-side
OpenFlipper.cc
View file @
eeaf2550
...
...
@@ -596,6 +596,23 @@ int main(int argc, char **argv)
QCoreApplication
::
setApplicationName
(
TOSTRING
(
PRODUCT_STRING
));
QCoreApplication
::
setApplicationVersion
(
OpenFlipper
::
Options
::
coreVersion
());
switch
(
parseCommandLine
(
parser
,
&
errorMessage
))
{
case
CommandLineOk
:
break
;
case
CommandLineError
:
fputs
(
qPrintable
(
errorMessage
),
stderr
);
fputs
(
"
\n\n
"
,
stderr
);
fputs
(
qPrintable
(
parser
.
helpText
()),
stderr
);
return
1
;
case
CommandLineVersionRequested
:
printf
(
"%s %s
\n
"
,
qPrintable
(
QCoreApplication
::
applicationName
()),
qPrintable
(
QCoreApplication
::
applicationVersion
()));
return
0
;
case
CommandLineHelpRequested
:
parser
.
showHelp
();
Q_UNREACHABLE
();
}
// create widget ( this also reads the ini files )
Core
*
w
=
new
Core
(
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment