Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Pawian
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PWA
Pawian
Commits
8ebae758
Commit
8ebae758
authored
11 years ago
by
Michael Leyhe
Browse files
Options
Downloads
Patches
Plain Diff
Added exit(0) after catching an exception in Parser.
parent
e1ea3d05
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ConfigParser/ParserBase.cc
+5
-3
5 additions, 3 deletions
ConfigParser/ParserBase.cc
with
5 additions
and
3 deletions
ConfigParser/ParserBase.cc
+
5
−
3
View file @
8ebae758
...
...
@@ -174,7 +174,7 @@ bool ParserBase::parseCommandLine(int argc, char **argv)
if
(
!
ifs
.
good
())
{
stringstream
strError
;
strError
<<
"Error accessing configuratio
common
n file "
<<
_configFile
;
strError
<<
"Error accessing configuration file "
<<
_configFile
;
std
::
cout
<<
cmdline_options
<<
endl
;
throw
runtime_error
(
strError
.
str
());
...
...
@@ -314,8 +314,10 @@ bool ParserBase::parseCommandLine(int argc, char **argv)
cerr
<<
"Error parsing the command line:"
<<
endl
;
cerr
<<
e
.
what
()
<<
std
::
endl
;
cerr
<<
"You can use -h or --help to obtain the description of the program parameters."
<<
endl
;
cerr
<<
"This is the command line options
\n
"
<<
endl
;
return
false
;
// cerr << "This is the command line options\n" << endl;
exit
(
0
);
// return false;
}
catch
(...){
std
::
cerr
<<
"Error parsing the command line. Use -h or --help to see the description of the program paramters."
<<
endl
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment