Skip to content

Commit

Permalink
Always print version of kWIP when using kwip CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
kdm9 committed Aug 30, 2015
1 parent 2624f3c commit 9bc1712
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kwip-cli.cc
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ main (int argc, char *argv[])
int opt = 0;
prog_name = std::string(argv[0]);

print_version();

if (argc < 2) {
print_cli_help();
return EXIT_FAILURE;
Expand All @@ -252,7 +254,6 @@ main (int argc, char *argv[])
print_cli_help();
return EXIT_SUCCESS;
case 'V':
print_version();
return EXIT_SUCCESS;
case 'U':
unweighted = true;
Expand All @@ -270,7 +271,6 @@ main (int argc, char *argv[])
case 'w':
break;
case '?':
print_version();
print_cli_help();
return EXIT_FAILURE;
}
Expand Down

0 comments on commit 9bc1712

Please sign in to comment.