Skip to content

Commit

Permalink
added version string cli (#22)
Browse files Browse the repository at this point in the history
* added version string

* fixed version string printing
  • Loading branch information
richardjgowers authored and greglandrum committed Dec 27, 2018
1 parent 972c47e commit 4f1f115
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tightbind/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ char test_string[80];
// argc = ccommand(&argv);

#endif
if( argc == 2 && strcmp(argv[1], "-v") == 0){
fprintf(stdout, "version: %s\n", VERSION_STRING);
exit(0);
}

/* make sure the program was called with the right arguments */
if( argc < 2){
fprintf(stderr,"Usage: bind <inputfile> [paramfile]\n");
Expand Down

0 comments on commit 4f1f115

Please sign in to comment.