From: Gergely Budai Date: Tue, 8 Dec 2015 12:59:45 +0000 (+0100) Subject: Include version in help text to make identification easier. X-Git-Tag: archive/raspbian/1.68-2+rpi1~98^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=15a116710626d095443a78563368fbf40fe230f3;p=pigpio.git Include version in help text to make identification easier. --- diff --git a/pigpiod.c b/pigpiod.c index 015b0d5..95be3d4 100644 --- a/pigpiod.c +++ b/pigpiod.c @@ -84,6 +84,7 @@ void fatal(char *fmt, ...) void usage() { fprintf(stderr, "\n" \ + "pigpio V%d\n" \ "Usage: sudo pigpiod [OPTION] ...\n" \ " -a value, DMA mode, 0=AUTO, 1=PMAP, 2=MBOX, default AUTO\n" \ " -b value, gpio sample buffer in milliseconds, default 120\n" \ @@ -100,7 +101,7 @@ void usage() "sudo pigpiod -s 2 -b 200 -f\n" \ " Set a sample rate of 2 microseconds with a 200 millisecond\n" \ " buffer. Disable the fifo interface.\n" \ - "\n"); + "\n", PIGPIO_VERSION); } static uint64_t getNum(char *str, int *err)