From: Darren Salt Date: Fri, 22 Jan 2010 23:35:26 +0000 (+0000) Subject: Rearrange the help text for block & unblock. X-Git-Tag: v2.31-rc1~98^2~13^2~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0b84cefad9bceb8d548eb6ff88813e84b836d40f;p=thirdparty%2Futil-linux.git Rearrange the help text for block & unblock. --- diff --git a/rfkill.c b/rfkill.c index 7b44b5a773..3cb26050a9 100644 --- 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 "{,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 all wifi wlan bluetooth uwb ultrawideband wimax wwan gps\n"); } static void version(void)