summaryrefslogtreecommitdiff
path: root/src/expand.c
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2017-04-02 16:52:34 -0700
committerPádraig Brady <P@draigBrady.com>2017-04-02 16:52:34 -0700
commit4c85c757e55c1b75635672624632e3e6c92c5dd1 (patch)
tree4dbcf0bc0887df4cf18290dccca40a481b547f6f /src/expand.c
parent9daef34543cc3267ec8e2cc22488bf202448ed84 (diff)
downloadcoreutils-4c85c757e55c1b75635672624632e3e6c92c5dd1.tar.gz
doc: refactor and update expand and unexpand --help
* src/expand-common.c (emit_tab_list_info): A new function to output the extended info on --tab=LIST, including the new '+' and '/' prefixes. * src/expand-common.h: Declare the above. * src/expand.c (usage:): Call emit_tab_list_info and match alignment with that used in unexpand --help. * src/unexpand.c (usage): Likewise.
Diffstat (limited to 'src/expand.c')
-rw-r--r--src/expand.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/expand.c b/src/expand.c
index 2b7781ca5..1e783169a 100644
--- a/src/expand.c
+++ b/src/expand.c
@@ -78,12 +78,10 @@ Convert tabs in each FILE to spaces, writing to standard output.\n\
emit_mandatory_arg_note ();
fputs (_("\
- -i, --initial do not convert tabs after non blanks\n\
- -t, --tabs=NUMBER have tabs NUMBER characters apart, not 8\n\
-"), stdout);
- fputs (_("\
- -t, --tabs=LIST use comma separated list of explicit tab positions\n\
+ -i, --initial do not convert tabs after non blanks\n\
+ -t, --tabs=N have tabs N characters apart, not 8\n\
"), stdout);
+ emit_tab_list_info ();
fputs (HELP_OPTION_DESCRIPTION, stdout);
fputs (VERSION_OPTION_DESCRIPTION, stdout);
emit_ancillary_info (PROGRAM_NAME);