Skip to content

Commit

Permalink
Add CLI options #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphka committed Sep 17, 2024
1 parent c981afe commit b642a5c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <number> Set how many items to get from Instagram API (default: 12)
-l, --limit <number> Set how many items to download in total
-ns, --no-stories Disable stories download
Expand Down
12 changes: 12 additions & 0 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b642a5c

Please sign in to comment.