Make -I and --files-from be synonyms for -T

This commit is contained in:
Tim Kientzle 2004-08-13 07:23:02 +00:00
parent c397ea6713
commit fc1f10af70

View file

@ -138,6 +138,7 @@ static const struct option tar_longopts[] = {
{ "extract", no_argument, NULL, 'x' },
{ "fast-read", no_argument, NULL, OPTION_FAST_READ },
{ "file", required_argument, NULL, 'f' },
{ "files-from", required_argument, NULL, 'T' },
{ "format", required_argument, NULL, OPTION_FORMAT },
{ "gunzip", no_argument, NULL, 'z' },
{ "gzip", no_argument, NULL, 'z' },
@ -273,6 +274,9 @@ main(int argc, char **argv)
long_help(bsdtar);
exit(0);
break;
case 'I': /* GNU tar */
bsdtar->names_from_file = optarg;
break;
case OPTION_INCLUDE:
if (include(bsdtar, optarg))
bsdtar_errc(bsdtar, 1, 0,