Skip to content
Myr

Do not allow list-details in combination with -1

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by sharkdp · parent a06efe1 · Browse files · 2 files+8 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+8 added−3 removed

  • other:+8 added−3 removed

2 files+8 added−3 removed

modified:src/app.rs+7 added-2 removed
439 unmodified lines
440 Arg::with_name("max-results")441 .long("max-results")442 .takes_value(true)443 .value_name("count")444 // We currently do not support --max-results in combination with445 // program execution because the results that come up in a --max-results446 // search are non-deterministic. Users might think that they can run the447 // same search with `--exec rm` attached and get a reliable removal of448 // the files they saw in the previous search.444 .conflicts_with_all(&["exec", "exec-batch"])449 .conflicts_with_all(&["exec", "exec-batch", "list-details"])450 .hidden_short_help(true)451 .long_help("Limit the number of search results to 'count' and quit immediately."),452 )453 .arg(454 Arg::with_name("max-one-result")455 .short("1")456 .hidden_short_help(true)457 .overrides_with("max-results")453 .conflicts_with_all(&["exec", "exec-batch"])458 .conflicts_with_all(&["exec", "exec-batch", "list-details"])459 .long_help("Limit the search to a single result and quit immediately. \460 This is an alias for '--max-results=1'.")461 )462 .arg(
84 unmodified lines
modified:src/filesystem.rs+1 added-1 removed
2 unmodified lines
3use std::ffi::OsStr;4use std::fs;5use std::io;6#[cfg(any(unix, target_os = "redox"))]7use std::os::unix::fs::{PermissionsExt, FileTypeExt};7use std::os::unix::fs::{FileTypeExt, PermissionsExt};8use std::path::{Path, PathBuf};910use crate::walk;11
118 unmodified lines