diff options
| author | Adam Janovsky | 2021-05-14 14:49:27 +0200 |
|---|---|---|
| committer | Adam Janovsky | 2021-05-14 14:49:27 +0200 |
| commit | b1dcb367392a0e0ef767e05f4132548556a6ae54 (patch) | |
| tree | 69047c0a4cf70216d235c78028fddc98c0ad74d3 /cc_cli.py | |
| parent | dcb44d6bb4c0ea06cc0cbe6b9f3280b567185668 (diff) | |
| download | sec-certs-b1dcb367392a0e0ef767e05f4132548556a6ae54.tar.gz sec-certs-b1dcb367392a0e0ef767e05f4132548556a6ae54.tar.zst sec-certs-b1dcb367392a0e0ef767e05f4132548556a6ae54.zip | |
cli: error on no input and no output
Diffstat (limited to 'cc_cli.py')
| -rw-r--r-- | cc_cli.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -36,6 +36,10 @@ def main(configpath: Optional[str], actions: List[str], inputpath: Optional[Path if output: output = Path(output) + if not inputpath and not output: + print('Error: You did not specify path to load the dataset from, nor did you specify where dataset can be stored.') + sys.exit(1) + if not silent: handlers.append(stream_handler) |
