diff options
author | mutantturkey <mutantturke@gmail.com> | 2013-03-05 09:27:12 -0500 |
---|---|---|
committer | mutantturkey <mutantturke@gmail.com> | 2013-03-05 09:27:12 -0500 |
commit | 810f378ff8ce79ef220da92dad9bc837a8ecb925 (patch) | |
tree | 0bacea1861ed43438a623dc4a66c0af6fce28257 /svte.c | |
parent | 63118697eed48dfebe1ec100610976cbff52d21c (diff) |
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.
Diffstat (limited to 'svte.c')
-rw-r--r-- | svte.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |