From 810f378ff8ce79ef220da92dad9bc837a8ecb925 Mon Sep 17 00:00:00 2001 From: mutantturkey Date: Tue, 5 Mar 2013 09:27:12 -0500 Subject: Add appropriate version option svte now should follow unix conventions a bit more appropriately. It will now take --version or -v and prints a \n after printing the version number. --- svte.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svte.c b/svte.c index 44827f6..263a59d 100644 --- a/svte.c +++ b/svte.c @@ -92,7 +92,7 @@ static GOptionEntry options[] = { "Path to configuration file to use.", NULL }, { "execute", 'e', 0, G_OPTION_ARG_STRING, &start_program, "execute this command.", NULL }, - { "version", 0, 0, G_OPTION_ARG_NONE, &show_version, + { "version", 'v', 0, G_OPTION_ARG_NONE, &show_version, "Print version information and exit", NULL }, { NULL } }; @@ -598,7 +598,7 @@ int main(int argc, char* argv[]) { } if (show_version) { - printf(VERSION); + printf("%s \n", VERSION); return 0; } -- cgit v1.2.3