summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xunperish3
1 files changed, 3 insertions, 0 deletions
diff --git a/unperish b/unperish
index d293382..0feb3dc 100755
--- a/unperish
+++ b/unperish
@@ -235,6 +235,9 @@ class Unperish(cliapp.Application):
def cmd_publish_docs(self, args):
'''Publish docs related to this project.'''
+ if not self.settings['web-directory']:
+ raise cliapp.AppException('Need --web-directory '
+ 'for publish-docs.')
docs = ['README', 'NEWS']
for doc in docs:
if os.path.exists(doc):