From 7a9191633ede9f0d02ddfddad69bcd210f5cbac2 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 30 Jun 2017 10:42:54 +0200 Subject: o Better output so I don't have to remember the usage syntax. --- src/usbreset.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/usbreset.cpp b/src/usbreset.cpp index 76c30c0..41e00e9 100644 --- a/src/usbreset.cpp +++ b/src/usbreset.cpp @@ -16,7 +16,10 @@ int main(int argc, char **argv) int rc; if (argc != 2) { - fprintf(stderr, "Usage: usbreset device-filename\n"); + fprintf(stderr, "Usage: %s [device-filename]\n", argv[0]); + fprintf(stderr, "\n"); + fprintf(stderr, "Example: sudo %s /dev/bus/usb/[BUS]/[DEVICE]", argv[0]); + fprintf(stderr, "Use lsusb to find the bus and device."); return 1; } filename = argv[1]; -- cgit v1.2.3