Browse Source

Added -od flag description

main
Unbewohnte 3 years ago
parent
commit
f084552cbe
  1. 3
      README.md
  2. 1
      src/main.cpp

3
README.md

@ -53,6 +53,7 @@ broom [FLAGS..] [COMMAND] [DIRECTORY]
- `-v` or `--version` -> print version information and exit
- `-h` or `--help` -> print this message and exit
- `-od` or `--output-directory` -> path to the directory to save results file in
[COMMANDS]
@ -64,7 +65,7 @@ broom [FLAGS..] [COMMAND] [DIRECTORY]
### Examples
- `broom scan ~/homework`
- `broom scan -od . ~/homework`
- `broom sweep ~/homework/I/have/a/lot/of/empty/files/here/for/some/reason`
after the scan the results file will be saved in your current working directory, scan results file contains

1
src/main.cpp

@ -189,7 +189,6 @@ int main(int argc, char* argv[]) {
for (auto& record : grouped_duplicates) {
could_be_freed += record.second[0].filesize * (record.second.size() - 1);
}
std::cout <<"[INFO] " << could_be_freed / 1024 / 1024 << " MB could be freed" << std::endl;
} catch(const std::exception& e) {

Loading…
Cancel
Save