mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-01 13:37:48 +00:00
Added verbose for split - prints created file name
This commit is contained in:
parent
93c3f02600
commit
61c2086310
2 changed files with 4 additions and 2 deletions
|
@ -3,8 +3,7 @@
|
||||||
## Missing Features
|
## Missing Features
|
||||||
|
|
||||||
### Flags
|
### Flags
|
||||||
* `-C N`
|
* `--verbose` - created file printing is implemented, don't know if there is anything else
|
||||||
* `--verbose`
|
|
||||||
|
|
||||||
## Possible Optimizations
|
## Possible Optimizations
|
||||||
* Use slice (`[u8]`) directly as the `control.current_line`.
|
* Use slice (`[u8]`) directly as the `control.current_line`.
|
||||||
|
|
|
@ -296,6 +296,9 @@ fn split(settings: &Settings) -> int {
|
||||||
fileno += 1;
|
fileno += 1;
|
||||||
writer = io::BufferedWriter::new(box io::File::open_mode(&Path::new(filename.as_slice()), io::Open, io::Write) as Box<Writer>);
|
writer = io::BufferedWriter::new(box io::File::open_mode(&Path::new(filename.as_slice()), io::Open, io::Write) as Box<Writer>);
|
||||||
control.request_new_file = false;
|
control.request_new_file = false;
|
||||||
|
if settings.verbose {
|
||||||
|
println!("creating file '{}'", filename);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let consumed = splitter.consume(&mut control);
|
let consumed = splitter.consume(&mut control);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue