aboutsummaryrefslogtreecommitdiff
path: root/coreutils/expand.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/expand.c')
-rw-r--r--coreutils/expand.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/coreutils/expand.c b/coreutils/expand.c
index bb59af46d..9ce86ebff 100644
--- a/coreutils/expand.c
+++ b/coreutils/expand.c
@@ -8,13 +8,13 @@
8 * David MacKenzie <djm@gnu.ai.mit.edu> 8 * David MacKenzie <djm@gnu.ai.mit.edu>
9 * 9 *
10 * Options for expand: 10 * Options for expand:
11 * -t num --tabs=NUM Convert tabs to num spaces (default 8 spaces). 11 * -t num --tabs NUM Convert tabs to num spaces (default 8 spaces).
12 * -i --initial Only convert initial tabs on each line to spaces. 12 * -i --initial Only convert initial tabs on each line to spaces.
13 * 13 *
14 * Options for unexpand: 14 * Options for unexpand:
15 * -a --all Convert all blanks, instead of just initial blanks. 15 * -a --all Convert all blanks, instead of just initial blanks.
16 * -f --first-only Convert only leading sequences of blanks (default). 16 * -f --first-only Convert only leading sequences of blanks (default).
17 * -t num --tabs=NUM Have tabs num characters apart instead of 8. 17 * -t num --tabs NUM Have tabs num characters apart instead of 8.
18 * 18 *
19 * Busybox version (C) 2007 by Tito Ragusa <farmatito@tiscali.it> 19 * Busybox version (C) 2007 by Tito Ragusa <farmatito@tiscali.it>
20 * 20 *
@@ -30,8 +30,6 @@
30//config: bool "Enable long options" 30//config: bool "Enable long options"
31//config: default y 31//config: default y
32//config: depends on EXPAND && LONG_OPTS 32//config: depends on EXPAND && LONG_OPTS
33//config: help
34//config: Support long options for the expand applet.
35//config: 33//config:
36//config:config UNEXPAND 34//config:config UNEXPAND
37//config: bool "unexpand" 35//config: bool "unexpand"
@@ -43,10 +41,9 @@
43//config: bool "Enable long options" 41//config: bool "Enable long options"
44//config: default y 42//config: default y
45//config: depends on UNEXPAND && LONG_OPTS 43//config: depends on UNEXPAND && LONG_OPTS
46//config: help
47//config: Support long options for the unexpand applet.
48 44
49//applet:IF_EXPAND(APPLET(expand, BB_DIR_USR_BIN, BB_SUID_DROP)) 45//applet:IF_EXPAND(APPLET(expand, BB_DIR_USR_BIN, BB_SUID_DROP))
46// APPLET_ODDNAME:name main location suid_type help
50//applet:IF_UNEXPAND(APPLET_ODDNAME(unexpand, expand, BB_DIR_USR_BIN, BB_SUID_DROP, unexpand)) 47//applet:IF_UNEXPAND(APPLET_ODDNAME(unexpand, expand, BB_DIR_USR_BIN, BB_SUID_DROP, unexpand))
51 48
52//kbuild:lib-$(CONFIG_EXPAND) += expand.o 49//kbuild:lib-$(CONFIG_EXPAND) += expand.o
@@ -58,7 +55,7 @@
58//usage: "Convert tabs to spaces, writing to stdout\n" 55//usage: "Convert tabs to spaces, writing to stdout\n"
59//usage: IF_FEATURE_EXPAND_LONG_OPTIONS( 56//usage: IF_FEATURE_EXPAND_LONG_OPTIONS(
60//usage: "\n -i,--initial Don't convert tabs after non blanks" 57//usage: "\n -i,--initial Don't convert tabs after non blanks"
61//usage: "\n -t,--tabs=N Tabstops every N chars" 58//usage: "\n -t,--tabs N Tabstops every N chars"
62//usage: ) 59//usage: )
63//usage: IF_NOT_FEATURE_EXPAND_LONG_OPTIONS( 60//usage: IF_NOT_FEATURE_EXPAND_LONG_OPTIONS(
64//usage: "\n -i Don't convert tabs after non blanks" 61//usage: "\n -i Don't convert tabs after non blanks"
@@ -72,7 +69,7 @@
72//usage: IF_FEATURE_UNEXPAND_LONG_OPTIONS( 69//usage: IF_FEATURE_UNEXPAND_LONG_OPTIONS(
73//usage: "\n -a,--all Convert all blanks" 70//usage: "\n -a,--all Convert all blanks"
74//usage: "\n -f,--first-only Convert only leading blanks" 71//usage: "\n -f,--first-only Convert only leading blanks"
75//usage: "\n -t,--tabs=N Tabstops every N chars" 72//usage: "\n -t,--tabs N Tabstops every N chars"
76//usage: ) 73//usage: )
77//usage: IF_NOT_FEATURE_UNEXPAND_LONG_OPTIONS( 74//usage: IF_NOT_FEATURE_UNEXPAND_LONG_OPTIONS(
78//usage: "\n -a Convert all blanks" 75//usage: "\n -a Convert all blanks"