Update help text
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>
Tue, 9 Aug 2016 15:04:53 +0000 (17:04 +0200)
committerJoseph C. Lehner <joseph.c.lehner@gmail.com>
Tue, 9 Aug 2016 15:04:53 +0000 (17:04 +0200)
main.c

diff --git a/main.c b/main.c
index e981fe00ee4b40f19bf961f41fd80a1537eeb818..15d0b4c5c7e8cf5351609168308fb5b22b866818 100644 (file)
--- a/main.c
+++ b/main.c
@@ -54,10 +54,15 @@ void usage(FILE *fp)
                        " -L              List network interfaces\n"
                        " -h              Show this screen\n"
                        "\n"
-                       "Example:\n"
-                       "\n"
+                       "Example: (run as "
+#ifndef NMRPFLASH_WINDOWS
+                       "root"
+#else
+                       "administrator"
+#endif
+                       ")\n\n"
 #ifndef NMRPFLASH_WINDOWS
-                       "$ sudo nmrpflash -i eth0 -a 192.168.1.254 -f firmware.bin\n"
+                       "# nmrpflash -i eth0 -a 192.168.1.254 -f firmware.bin\n"
 #else
                        "C:\\> nmrpflash.exe -i net0 -a 192.168.1.254 -f firmware.bin\n"
 #endif