Skip to content

Commit 39c98a8

Browse files
committed
-I/--input-dir defaulting to "downloaded" in extract/scrape
Fix #974
1 parent 132ab42 commit 39c98a8

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

docs/cli.md

+2
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,7 @@ Optional Arguments:
868868
-g, --glob Will interpret given paths as glob patterns to
869869
resolve if given.
870870
-I, --input-dir INPUT_DIR Directory where the HTML files are stored.
871+
Defaults to `downloaded`.
871872
--mimetype-column MIMETYPE_COLUMN
872873
Name of the CSV column containing file mimetype.
873874
Defaults to `mimetype`.
@@ -1197,6 +1198,7 @@ Optional Arguments:
11971198
-g, --glob Will interpret given paths as glob patterns to
11981199
resolve if given.
11991200
-I, --input-dir INPUT_DIR Directory where the HTML files are stored.
1201+
Defaults to `downloaded`.
12001202
--mimetype-column MIMETYPE_COLUMN
12011203
Name of the CSV column containing file mimetype.
12021204
Defaults to `mimetype`.

minet/cli/extract/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from casanova import IndexedResumer
22

33
from minet.cli.argparse import command
4+
from minet.cli.constants import DEFAULT_CONTENT_FOLDER
45

56

67
def resolve_arguments(cli_args):
@@ -101,6 +102,7 @@ def resolve_arguments(cli_args):
101102
{
102103
"flags": ["-I", "--input-dir"],
103104
"help": "Directory where the HTML files are stored.",
105+
"default": DEFAULT_CONTENT_FOLDER
104106
},
105107
{
106108
"flags": ["-p", "--processes"],

minet/cli/scrape/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from minet.cli.argparse import command
2+
from minet.cli.constants import DEFAULT_CONTENT_FOLDER
23

34

45
def resolve_arguments(cli_args):
@@ -126,6 +127,7 @@ def resolve_arguments(cli_args):
126127
{
127128
"flags": ["-I", "--input-dir"],
128129
"help": "Directory where the HTML files are stored.",
130+
"default": DEFAULT_CONTENT_FOLDER
129131
},
130132
{
131133
"flags": ["-p", "--processes"],

0 commit comments

Comments
 (0)