Permalink
Browse files

Add a version number.

  • Loading branch information...
1 parent 4cbc08a commit c5c9e51b46705d2ac6fc81591f80db8a871d5da1 @nelhage committed Jan 28, 2011
Showing with 7 additions and 0 deletions.
  1. +5 −0 reptyr.c
  2. +2 −0 reptyr.h
View
5 reptyr.c
@@ -160,6 +160,11 @@ int main(int argc, char **argv) {
case 'l':
do_attach = 0;
break;
+ case 'v':
+ printf("This is reptyr version %s.\n", REPTYR_VERSION);
+ printf(" by Nelson Elhage <nelhage@nelhage.com>\n");
+ printf("http://github.com/nelhage/reptyr/\n");
+ return 0;
default:
usage(argv[0]);
return 1;
View
2 reptyr.h
@@ -1,3 +1,5 @@
+#define REPTYR_VERSION "0.1"
+
int attach_child(pid_t pid, const char *pty);
void die(const char *msg, ...);
void debug(const char *msg, ...);

0 comments on commit c5c9e51

Please sign in to comment.