add --version to bti.c
[gregoa/bti.git] / bti.c
diff --git a/bti.c b/bti.c
index 29599f5..7baf337 100644 (file)
--- a/bti.c
+++ b/bti.c
@@ -61,12 +61,17 @@ static void display_help(void)
        fprintf(stdout, "options are:\n");
        fprintf(stdout, "  --account accountname\n");
        fprintf(stdout, "  --password password\n");
-       fprintf(stdout, "  --bash\n");
-       fprintf(stdout, "  --quiet\n");
+       fprintf(stdout, "  --clean\n");
        fprintf(stdout, "  --debug\n");
+       fprintf(stdout, "  --version\n");
        fprintf(stdout, "  --help\n");
 }
 
+static void display_version(void)
+{
+       fprintf(stdout, "bti - version %s\n", BTI_VERSION);
+}
+
 static char *get_string_from_stdin(void)
 {
        char *temp;