mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 20:06:38 +00:00
17 lines
387 B
Rust
17 lines
387 B
Rust
use std::path::PathBuf;
|
|
|
|
fn main() {
|
|
let flags = xflags::parse_or_exit! {
|
|
/// Remove directories and their contents recursively.
|
|
optional -r,--recursive
|
|
/// File or directory to remove
|
|
required path: PathBuf
|
|
};
|
|
|
|
println!(
|
|
"removing {}{}",
|
|
flags.path.display(),
|
|
if flags.recursive { "recursively" } else { "" },
|
|
)
|
|
}
|