Throw an error on empty arguments

Fixes #290
This commit is contained in:
JustAnotherArchivist
2021-10-10 17:43:27 +00:00
parent 5e829e2541
commit a6b6f3faaa
8 changed files with 25 additions and 11 deletions

View File

@@ -218,7 +218,7 @@ def _make_scraper(name_, validationFunc, apiField):
@classmethod
def setup_parser(cls, subparser):
super()._setup_parser_opts(subparser)
subparser.add_argument(name_)
subparser.add_argument(name_, type = snscrape.base.nonempty_string(name_))
@classmethod
def from_args(cls, args):