commit 72846c9ddd0046d4d485b2f0a801534fc3ed6519 parent 2d61e19da96ca59e0cd196d8892d31922154a73a Author: Claudio Alessi <smoppy@gmail.com> Date: Sat, 18 Jun 2022 12:39:44 +0200 Add -v flag Diffstat:
M | sbc.c | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/sbc.c b/sbc.c @@ -14,6 +14,10 @@ main(int argc, char *argv[]) { printf("Usage: %s <value> [base]\n", argv[0]); return 1; } + if(!strcmp("-v", argv[1])) { + printf("sbc-%s\n", VERSION); + return 1; + } if(argv[2]) base = atoi(argv[2]); else {