summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQiuwen Lu <[email protected]>2017-04-22 20:37:36 +0800
committerQiuwen Lu <[email protected]>2017-04-22 20:37:36 +0800
commit5a558774295260e9880db70f8c7b469ea176cd10 (patch)
tree113be1ef5de2e88e88e5a2eb1d2a70ba62f1f0e2
parent087cc229f3e8b35657df7f5abd96138c29960ac2 (diff)
增加版本号输出v4.1.5-20170424
-rw-r--r--service/src/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/service/src/core.c b/service/src/core.c
index a095812..ba1fdcf 100644
--- a/service/src/core.c
+++ b/service/src/core.c
@@ -93,12 +93,13 @@ static void __write_arg(char * eal_argv[], unsigned int * eal_argc,
static void sc_help()
{
- fprintf(stdout, "TODO: help()\n");
+ fprintf(stdout, "\n");
exit(EXIT_SUCCESS);
}
static void sc_version()
{
+ fprintf(stdout, "%s\n", service_git_version);
exit(EXIT_SUCCESS);
}