xz: Enable -r, --recursive option.
This commit is contained in:
parent
b10b2e4a8f
commit
8d07e9bb7c
|
@ -24,6 +24,7 @@ bool opt_force = false;
|
|||
bool opt_keep_original = false;
|
||||
bool opt_robot = false;
|
||||
bool opt_ignore_check = false;
|
||||
bool opt_recursive = false;
|
||||
|
||||
// We don't modify or free() this, but we need to assign it in some
|
||||
// non-const pointers.
|
||||
|
@ -230,7 +231,7 @@ parse_real(args_info *args, int argc, char **argv)
|
|||
{ "single-stream", no_argument, NULL, OPT_SINGLE_STREAM },
|
||||
{ "no-sparse", no_argument, NULL, OPT_NO_SPARSE },
|
||||
{ "suffix", required_argument, NULL, 'S' },
|
||||
// { "recursive", no_argument, NULL, 'r' }, // TODO
|
||||
{ "recursive", no_argument, NULL, 'r' },
|
||||
{ "files", optional_argument, NULL, OPT_FILES },
|
||||
{ "files0", optional_argument, NULL, OPT_FILES0 },
|
||||
|
||||
|
@ -334,6 +335,11 @@ parse_real(args_info *args, int argc, char **argv)
|
|||
suffix_set(optarg);
|
||||
break;
|
||||
|
||||
// --recursive
|
||||
case 'r':
|
||||
opt_recursive = true;
|
||||
break;
|
||||
|
||||
case 'T': {
|
||||
// Since xz 5.4.0: Ignore leading '+' first.
|
||||
const char *s = optarg;
|
||||
|
|
|
@ -35,7 +35,7 @@ typedef struct {
|
|||
extern bool opt_stdout;
|
||||
extern bool opt_force;
|
||||
extern bool opt_keep_original;
|
||||
// extern bool opt_recursive;
|
||||
extern bool opt_recursive;
|
||||
extern bool opt_robot;
|
||||
extern bool opt_ignore_check;
|
||||
|
||||
|
|
Loading…
Reference in New Issue