Skip to content
Browse files

cgdcbxd: create a version string

Bump version and add a version string to command line.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
  • Loading branch information...
1 parent ec5baa3 commit 87bd75419dc04a2f4ff6880cdc58aa4540d40a49 @jrfastab committed Jun 21, 2012
Showing with 8 additions and 2 deletions.
  1. +3 −0 cgdcbxd.8
  2. +4 −1 cgdcbxd.c
  3. +1 −1 configure.ac
View
3 cgdcbxd.8
@@ -58,6 +58,9 @@ Display help.
.TP
.B -n
Don't fork the daemon, stay in the foreground.
+.TP
+.B -v
+Show version
.SH FILES
.LP
.PD .1v
View
5 cgdcbxd.c
@@ -959,14 +959,17 @@ int main(int argc, char *argv[])
{ 0, 0, 0, 0}
};
- while ((c = getopt_long(argc, argv, "hns", longopts, NULL)) > 0) {
+ while ((c = getopt_long(argc, argv, "vhns", longopts, NULL)) > 0) {
switch (c) {
case 'h':
usage(argv[0]);
exit(0);
case 'n':
daemonize = 0;
break;
+ case 'v':
+ printf("%s\n", PACKAGE_STRING);
+ exit(0);
default:
exit(1);
}
View
2 configure.ac
@@ -1,4 +1,4 @@
-AC_INIT([cgdcbx], [1.0.0])
+AC_INIT([cgdcbx], [1.0.1])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_PROG_CC

0 comments on commit 87bd754

Please sign in to comment.
Something went wrong with that request. Please try again.