commit 2aac5ffacaac90eafb107033031e1627205b16d7
parent 6d593471dede9525bea40365704176fc87a7ef13
Author: Claudio Alessi <smoppy@gmail.com>
Date: Sat, 12 Mar 2016 17:00:39 +0100
Add -v flag.
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/core.c b/core.c
@@ -684,7 +684,7 @@ text(void) {
void
usage(void) {
- die("Usage: %s [-hup <arg>]\n", argv0);
+ die("Usage: %s [-vhup <arg>]\n", argv0);
}
void
@@ -717,6 +717,8 @@ main(int argc, char **argv) {
case 'p':
dbpass = EARGF(usage());
break;
+ case 'v':
+ die("%s " VERSION " (c) 2016 Claudio Alessi\n", argv0);
} ARGEND;
setup();