From f084552cbe7ebf561d96c52e5bbbf57e2132a11a Mon Sep 17 00:00:00 2001 From: Unbewohnte Date: Tue, 18 Jan 2022 16:54:53 +0300 Subject: [PATCH] Added -od flag description --- README.md | 3 ++- src/main.cpp | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f437f28..3e4e51d 100644 --- a/README.md +++ b/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 diff --git a/src/main.cpp b/src/main.cpp index 4ec98f7..466c697 100755 --- a/src/main.cpp +++ b/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) {