cpio: allow cpio -i to take params - names of files to extract

Also, improve help text

function                                             old     new   delta
packed_usage                                       28028   28035      +7
cpio_main                                            542     532     -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 7/-10)              Total: -3 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2010-12-26 02:22:51 +01:00
parent e4e911e712
commit 1f937d6468
2 changed files with 66 additions and 68 deletions

View File

@@ -592,35 +592,6 @@ INSERT
"\n -i Prompt before overwrite" \
"\n -l,-s Create (sym)links" \
#define cpio_trivial_usage \
"[-dmvu] [-F FILE]" IF_FEATURE_CPIO_O(" [-H newc]") \
" [-ti"IF_FEATURE_CPIO_O("o")"]" IF_FEATURE_CPIO_P(" [-p DIR]")
#define cpio_full_usage "\n\n" \
"Extract or list files from a cpio archive" \
IF_FEATURE_CPIO_O(", or" \
"\ncreate an archive" IF_FEATURE_CPIO_P(" (-o) or copy files (-p)") \
" using file list on stdin" \
) \
"\n" \
"\nMain operation mode:" \
"\n -t List" \
"\n -i Extract" \
IF_FEATURE_CPIO_O( \
"\n -o Create (requires -H newc)" \
) \
IF_FEATURE_CPIO_P( \
"\n -p DIR Copy files to DIR" \
) \
"\nOptions:" \
"\n -d Make leading directories" \
"\n -m Preserve mtime" \
"\n -v Verbose" \
"\n -u Overwrite" \
"\n -F FILE Input (-t,-i,-p) or output (-o) file" \
IF_FEATURE_CPIO_O( \
"\n -H newc Archive format" \
) \
#define crond_trivial_usage \
"-fbS -l N " IF_FEATURE_CROND_D("-d N ") "-L LOGFILE -c DIR"
#define crond_full_usage "\n\n" \