commit 0c017585bcd30e9a3948f2e8236a6a8b9c1644e8
parent 2d72e502d1057d202775a779cf9c309284e62f2c
Author: Claudio Alessi <smoppy@gmail.com>
Date: Tue, 26 Sep 2017 19:06:17 +0200
Add usage synopsis and fix -v output.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/circo.c b/circo.c
@@ -1025,7 +1025,7 @@ trim(char *s) {
void
usage(void) {
- die("Usage: %s ...\n", argv0);
+ die("Usage: %s [-v] [-hpnl <arg>]\n", argv0);
}
void
@@ -1106,7 +1106,7 @@ main(int argc, char *argv[]) {
strncpy(logfile, EARGF(usage()), sizeof logfile);
break;
case 'v':
- die("foo..");
+ die("circo-"VERSION"\n");
default:
usage();
} ARGEND;