Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
0fa79ebd
Commit
0fa79ebd
authored
Sep 04, 2017
by
schultz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed redundant commandline parsing from no gui execution branch
parent
a9e8af33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
40 deletions
+0
-40
OpenFlipper.cc
OpenFlipper.cc
+0
-40
No files found.
OpenFlipper.cc
View file @
0fa79ebd
...
...
@@ -601,49 +601,9 @@ int main(int argc, char **argv)
QCoreApplication
app
(
argc
,
argv
);
// Set organization and application names
QCoreApplication
::
setOrganizationName
(
"rwth-aachen.de"
);
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
(
);
switch
(
parseCommandLine
(
parser
,
&
errorMessage
))
{
case
CommandLineOk
:
break
;
case
CommandLineError
:
fputs
(
qPrintable
(
errorMessage
),
stderr
);
fputs
(
"
\n\n
"
,
stderr
);
fputs
(
qPrintable
(
parser
.
helpText
()),
stderr
);
delete
w
;
return
1
;
case
CommandLineVersionRequested
:
printf
(
"%s %s
\n
"
,
qPrintable
(
QCoreApplication
::
applicationName
()),
qPrintable
(
QCoreApplication
::
applicationVersion
()));
return
0
;
case
CommandLineHelpRequested
:
parser
.
showHelp
();
Q_UNREACHABLE
();
}
// After setting all Options from command line, build the real gui
w
->
init
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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