]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Rearrange the help text for block & unblock.
authorDarren Salt <linux@youmustbejoking.demon.co.uk>
Fri, 22 Jan 2010 23:35:26 +0000 (23:35 +0000)
committerJohannes Berg <johannes@sipsolutions.net>
Sat, 23 Jan 2010 12:50:37 +0000 (13:50 +0100)
rfkill.c

index 7b44b5a773e525fcf9575fe53d1c982b06a35525..3cb26050a9ba44514879eeaf63d22dcc7ddd86a7 100644 (file)
--- a/rfkill.c
+++ b/rfkill.c
@@ -224,8 +224,6 @@ static enum rfkill_type rfkill_str_to_type(char *s)
 
 static const char *argv0;
 
-#define BLOCK_PARAMS "{<idx>,all,wifi,wlan,bluetooth,uwb,ultrawideband,wimax,wwan,gps}"
-
 static void usage(void)
 {
        fprintf(stderr, "Usage:\t%s [options] command\n", argv0);
@@ -235,8 +233,10 @@ static void usage(void)
        fprintf(stderr, "\thelp\n");
        fprintf(stderr, "\tevent\n");
        fprintf(stderr, "\tlist\n");
-       fprintf(stderr, "\tblock "BLOCK_PARAMS"\n");
-       fprintf(stderr, "\tunblock "BLOCK_PARAMS"\n");
+       fprintf(stderr, "\tblock IDENTIFIER\n");
+       fprintf(stderr, "\tunblock IDENTIFIER\n");
+       fprintf(stderr, "where IDENTIFIER is the index no. of an rfkill switch or one of:\n");
+       fprintf(stderr, "\t<idx> all wifi wlan bluetooth uwb ultrawideband wimax wwan gps\n");
 }
 
 static void version(void)