summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Peveler <matt.peveler@gmail.com>2021-01-30 01:59:35 +0000
committerMatthew Peveler <matt.peveler@gmail.com>2021-01-30 01:59:35 +0000
commitca4ac3c58b3c64b881a42a4e6fec21c125dd25f8 (patch)
tree8e776128216dfe785de357c10b5ec2475137872f
parentc4c6c5402d3028e750bf589a01aab57a3cf2fc18 (diff)
downloadasciidoc-py3-ca4ac3c58b3c64b881a42a4e6fec21c125dd25f8.tar.gz
disable calling asciidoc package without -m flag
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
-rw-r--r--asciidoc/__main__.py2
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()