Skip to content

Commit

Permalink
fix optional option --trce
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Ramsauer committed Apr 11, 2018
1 parent 7370ca0 commit 7d74772
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parsemain.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ void help() {

int main(int argc, char** argv) {
// Compiler intialisieren
if ( argc < 2 ) {
if ( argc == 1 ) {
help();
}

char* tracefile = nullptr;
char* tracefile = "";
if ( argc > 2 && argc == 4 ) {
tracefile = argv[ 2 ];
} else {
} else if ( argc != 2 ) {
help();
}

Expand Down

0 comments on commit 7d74772

Please sign in to comment.