diff options
author | Matthew Peveler <matt.peveler@gmail.com> | 2021-01-30 01:59:35 +0000 |
---|---|---|
committer | Matthew Peveler <matt.peveler@gmail.com> | 2021-01-30 01:59:35 +0000 |
commit | ca4ac3c58b3c64b881a42a4e6fec21c125dd25f8 (patch) | |
tree | 8e776128216dfe785de357c10b5ec2475137872f /asciidoc | |
parent | c4c6c5402d3028e750bf589a01aab57a3cf2fc18 (diff) | |
download | asciidoc-py3-ca4ac3c58b3c64b881a42a4e6fec21c125dd25f8.tar.gz |
disable calling asciidoc package without -m flag
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
Diffstat (limited to 'asciidoc')
-rw-r--r-- | asciidoc/__main__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asciidoc/__main__.py b/asciidoc/__main__.py index d7384c5..2c9b731 100644 --- a/asciidoc/__main__.py +++ b/asciidoc/__main__.py @@ -1,7 +1,7 @@ try: from .asciidoc import cli, set_caller except ImportError: - from asciidoc import cli, set_caller + raise SystemExit('ERROR: You must execute as a module using the -m flag') set_caller(__name__) cli() |