From 314f19e4d2099eb19824df49d71953946486f78f Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 2 Jun 2014 21:16:20 -0500 Subject: [PATCH] Help text should have a blank line after usage: lines, and a couple other whitespace tweaks. --- toys/other/blkid.c | 1 + toys/other/modinfo.c | 1 + toys/other/vconfig.c | 14 +++++++------- toys/posix/cal.c | 1 + toys/posix/cat.c | 1 + toys/posix/cut.c | 14 ++++++++------ toys/posix/mkdir.c | 1 + toys/posix/rmdir.c | 1 + 8 files changed, 21 insertions(+), 13 deletions(-) diff --git a/toys/other/blkid.c b/toys/other/blkid.c index 1b85d0b8..5c69a1ef 100644 --- a/toys/other/blkid.c +++ b/toys/other/blkid.c @@ -12,6 +12,7 @@ config BLKID default y help usage: blkid [block device...] + Prints type, label and UUID of filesystem. */ diff --git a/toys/other/modinfo.c b/toys/other/modinfo.c index ef457aea..f572a991 100644 --- a/toys/other/modinfo.c +++ b/toys/other/modinfo.c @@ -9,6 +9,7 @@ config MODINFO default y help usage: modinfo [-0] [-b basedir] [-k kernrelease] [-F field] [modulename...] + Display module fields for all specified modules, looking in /lib/modules// (kernrelease defaults to uname -r). */ diff --git a/toys/other/vconfig.c b/toys/other/vconfig.c index 0b885dca..eff918c1 100644 --- a/toys/other/vconfig.c +++ b/toys/other/vconfig.c @@ -13,14 +13,14 @@ config VCONFIG help usage: vconfig COMMAND [OPTIONS] - add [interface-name] [vlan_id] - rem [vlan-name] - set_flag [interface-name] [flag-num] [0 | 1] - set_egress_map [vlan-name] [skb_priority] [vlan_qos] - set_ingress_map [vlan-name] [skb_priority] [vlan_qos] - set_name_type [name-type] - Create and remove virtual ethernet devices + + add [interface-name] [vlan_id] + rem [vlan-name] + set_flag [interface-name] [flag-num] [0 | 1] + set_egress_map [vlan-name] [skb_priority] [vlan_qos] + set_ingress_map [vlan-name] [skb_priority] [vlan_qos] + set_name_type [name-type] */ #include "toys.h" diff --git a/toys/posix/cal.c b/toys/posix/cal.c index e4301a64..bb476dfd 100644 --- a/toys/posix/cal.c +++ b/toys/posix/cal.c @@ -11,6 +11,7 @@ config CAL default y help usage: cal [[month] year] + Print a calendar. With one argument, prints all months of the specified year. diff --git a/toys/posix/cat.c b/toys/posix/cat.c index 78881c4c..3644c4f9 100644 --- a/toys/posix/cat.c +++ b/toys/posix/cat.c @@ -11,6 +11,7 @@ config CAT default y help usage: cat [-u] [file...] + Copy (concatenate) files to stdout. If no files listed, copy from stdin. Filename "-" is a synonym for stdin. diff --git a/toys/posix/cut.c b/toys/posix/cut.c index 5ca466dc..38f136e2 100644 --- a/toys/posix/cut.c +++ b/toys/posix/cut.c @@ -11,13 +11,15 @@ config CUT default y help usage: cut OPTION... [FILE]... + Print selected parts of lines from each FILE to standard output. - -b LIST select only these bytes from LIST. - -c LIST select only these characters from LIST. - -f LIST select only these fields. - -d DELIM use DELIM instead of TAB for field delimiter. - -s do not print lines not containing delimiters. - -n don't split multibyte characters (Ignored). + + -b LIST select only these bytes from LIST. + -c LIST select only these characters from LIST. + -f LIST select only these fields. + -d DELIM use DELIM instead of TAB for field delimiter. + -s do not print lines not containing delimiters. + -n don't split multibyte characters (Ignored). */ #define FOR_cut #include "toys.h" diff --git a/toys/posix/mkdir.c b/toys/posix/mkdir.c index 5cbc28db..739f961b 100644 --- a/toys/posix/mkdir.c +++ b/toys/posix/mkdir.c @@ -11,6 +11,7 @@ config MKDIR default y help usage: mkdir [-vp] [-m mode] [dirname...] + Create one or more directories. -m set permissions of directory to mode. diff --git a/toys/posix/rmdir.c b/toys/posix/rmdir.c index fec3ce98..23266c31 100644 --- a/toys/posix/rmdir.c +++ b/toys/posix/rmdir.c @@ -11,6 +11,7 @@ config RMDIR default y help usage: rmdir [-p] [dirname...] + Remove one or more directories. -p Remove path. -- 2.11.0