Remove doc-hidden recursive option (#225)

As the comment mentions, this is used only in CLI interface, so there's no reason for it not to live directly in CLI code.

Ref: #220.
This commit is contained in:
Ingvar Stepanyan 2020-04-20 13:51:18 +01:00 committed by GitHub
parent b2725d5149
commit fee76ca44f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View file

@ -129,9 +129,6 @@ pub struct Options {
/// ///
/// Default: `false` /// Default: `false`
pub pretend: bool, pub pretend: bool,
/// Used only in CLI interface
#[doc(hidden)]
pub recursive: bool,
/// Write to output even if there was no improvement in compression. /// Write to output even if there was no improvement in compression.
/// ///
/// Default: `false` /// Default: `false`
@ -282,7 +279,6 @@ impl Default for Options {
Options { Options {
backup: false, backup: false,
pretend: false, pretend: false,
recursive: false,
fix_errors: false, fix_errors: false,
force: false, force: false,
preserve_attrs: false, preserve_attrs: false,

View file

@ -255,7 +255,7 @@ fn main() {
.collect(), .collect(),
&out_dir, &out_dir,
&out_file, &out_file,
opts.recursive, matches.is_present("recursive"),
true, true,
); );
@ -381,10 +381,6 @@ fn parse_opts_into_struct(
opts.force = true; opts.force = true;
} }
if matches.is_present("recursive") {
opts.recursive = true;
}
if matches.is_present("fix") { if matches.is_present("fix") {
opts.fix_errors = true; opts.fix_errors = true;
} }