feat: multiple words
This commit is contained in:
@@ -15,6 +15,7 @@ class Parameters:
|
||||
quiet: bool = False
|
||||
cache: bool = True
|
||||
count: int = 1
|
||||
words: int = 1
|
||||
dig: bool = True
|
||||
lang: str = "english"
|
||||
cache_file: str = str(pathlib.Path(tempfile.gettempdir()) / ".cool-domain-cache")
|
||||
@@ -104,6 +105,13 @@ def parse_parameters(args: typing.Sequence[str]) -> Parameters:
|
||||
help="word list lang (default: english)",
|
||||
choices=LANGS.keys(),
|
||||
)
|
||||
__add_arg_int(
|
||||
parser,
|
||||
"--words",
|
||||
env_var="WORD_COUNT",
|
||||
default=default_values.words,
|
||||
help_txt="number of words per domain",
|
||||
)
|
||||
__add_arg_bool(
|
||||
parser,
|
||||
"--dig",
|
||||
|
||||
Reference in New Issue
Block a user