*** empty log message ***
This commit is contained in:
parent
83365de0d1
commit
472898871c
2 changed files with 5 additions and 5 deletions
|
|
@ -17,7 +17,7 @@ void GetOutputParam(Parser & parser,
|
|||
try {
|
||||
parser.AddTitle("Separate parameter: the output file name");
|
||||
_string = parser.getString("-O", "--OutputFile", "", "The output file name" );
|
||||
} catch (UException & e) {
|
||||
} catch (logic_error & e) {
|
||||
cout << e.what() << endl;
|
||||
parser.printHelp();
|
||||
exit(1);
|
||||
|
|
@ -34,7 +34,7 @@ void sub(Parser & parser) {
|
|||
try {
|
||||
parser.AddTitle("Private parameters of subroutine sub");
|
||||
i = parser.getInt("-j", "--sint", "5", "private integer of subroutine" );
|
||||
} catch (UException & e) {
|
||||
} catch (logic_error & e) {
|
||||
cout << e.what() << endl;
|
||||
parser.printHelp();
|
||||
exit(1);
|
||||
|
|
@ -62,7 +62,7 @@ void getParams( Parser & parser,
|
|||
_array = parser.getArray("-a", "--array", "a b", "an array enclosed within < >" );
|
||||
_boolean = parser.getBool("-b","--bool", "a bool value" );
|
||||
}
|
||||
catch (UException & e)
|
||||
catch (logic_error & e)
|
||||
{
|
||||
cout << e.what() << endl;
|
||||
parser.printHelp();
|
||||
|
|
|
|||
Reference in a new issue