commit 42a4397ad42030ea64df8d7c621ae3441ca90eef
parent 468f73b04c1967c5a8f90e1e276ad4f59229f14a
Author: Cem Keylan <cem@ckyln.com>
Date: Sat, 10 Oct 2020 11:18:17 +0300
add version to usage outputs
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/runsyssv.c b/runsyssv.c
@@ -19,7 +19,7 @@ static struct service sv;
void
usage(int exitnum)
{
- printf("usage: %s [svfile]\n", argv0);
+ printf("usage: %s [svfile]\n\nsysmgr-%s\n", argv0, VERSION);
exit(exitnum);
}
diff --git a/svctl.c b/svctl.c
@@ -19,7 +19,8 @@ usage(int exitnum)
" start/stop/restart Start/stop/restart services\n"
" once Start services once\n"
" status Check service statuses\n"
- " up/down Same as start/stop\n\n", stdout);
+ " up/down Same as start/stop\n\n"
+ "sysmgr-"VERSION"\n", stdout);
exit(exitnum);
}