doc: refactor and update expand and unexpand --help
commit4c85c757e55c1b75635672624632e3e6c92c5dd1
authorPádraig Brady <P@draigBrady.com>
Sun, 2 Apr 2017 23:52:34 +0000 (2 16:52 -0700)
committerPádraig Brady <P@draigBrady.com>
Sun, 2 Apr 2017 23:52:34 +0000 (2 16:52 -0700)
tree4dbcf0bc0887df4cf18290dccca40a481b547f6f
parent9daef34543cc3267ec8e2cc22488bf202448ed84
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.
src/expand-common.c
src/expand-common.h
src/expand.c
src/unexpand.c