X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Ftar.c;h=acc58671222ec3e74d785d86ee6cd68506741ef2;hb=435edb824e6d6271ed6b2d5c9f0e5b81f989a8f6;hp=ca98af5c08c6557604013b6b977bef62d5d25711;hpb=c58063c17a3505a506d4da3ed319c1eed289e78f;p=chaz%2Ftar diff --git a/src/tar.c b/src/tar.c index ca98af5..acc5867 100644 --- a/src/tar.c +++ b/src/tar.c @@ -601,8 +601,6 @@ static struct argp_option options[] = { N_("follow symlinks; archive and dump the files they point to"), GRID+1 }, {"starting-file", 'K', N_("MEMBER-NAME"), 0, N_("begin at member MEMBER-NAME in the archive"), GRID+1 }, - {"strip-components", STRIP_COMPONENTS_OPTION, N_("NUMBER"), 0, - N_("strip NUMBER leading components from file names"), GRID+1 }, {"newer", 'N', N_("DATE-OR-FILE"), 0, N_("only store files newer than DATE-OR-FILE"), GRID+1 }, {"newer-mtime", NEWER_MTIME_OPTION, N_("DATE"), 0, @@ -613,8 +611,16 @@ static struct argp_option options[] = { N_("backup before removal, choose version CONTROL"), GRID+1 }, {"suffix", SUFFIX_OPTION, N_("STRING"), 0, N_("backup before removal, override usual suffix ('~' unless overridden by environment variable SIMPLE_BACKUP_SUFFIX)"), GRID+1 }, - {"transform", TRANSFORM_OPTION, N_("EXPR"), 0, - N_("Use EXPR to transform member names"), GRID+1 }, +#undef GRID + +#define GRID 92 + {NULL, 0, NULL, 0, + N_("File name transformations:"), GRID }, + {"strip-components", STRIP_COMPONENTS_OPTION, N_("NUMBER"), 0, + N_("strip NUMBER leading components from file names on extraction"), + GRID+1 }, + {"transform", TRANSFORM_OPTION, N_("EXPRESSION"), 0, + N_("Use sed replace EXPRESSION to transform file names"), GRID+1 }, #undef GRID #define GRID 95