From b642a5c442c60142f86371bdd2a728aa1de966c3 Mon Sep 17 00:00:00 2001 From: Kayo Souza Date: Tue, 17 Sep 2024 20:49:10 -0300 Subject: [PATCH] Add CLI options #1 --- README.md | 2 ++ src/config.js | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/README.md b/README.md index 4cbfac7..489a33d 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,8 @@ Options: -v, --version Display program version -o, --output [path] Output directory -f, --force Force creation of output directory + -O, --open Open output folders when finished + -uf, --unifolder Downloads the contents in the parent folder, instead of subdirectories. -q, --queue Set how many items to get from Instagram API (default: 12) -l, --limit Set how many items to download in total -ns, --no-stories Disable stories download diff --git a/src/config.js b/src/config.js index 42cc8fb..7246791 100644 --- a/src/config.js +++ b/src/config.js @@ -23,6 +23,18 @@ const config = { description: "Force creation of output directory", defaultValue: false }, + { + option: "open", + alternative: "O", + description: "Open output folders when finished", + defaultValue: false + }, + { + option: "unifolder", + alternative: "uf", + description: "Downloads the contents in the parent folder, instead of subdirectories.", + defaultValue: false + }, { option: "queue", alternative: "q",