summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-07-24 11:15:42 +0100
committerLars Wirzenius <liw@liw.fi>2011-07-24 11:15:42 +0100
commitfcac0260ec2c040aefa96e069de66dbcb3837085 (patch)
tree1e6dda035c9713ce762932ff2b78f2c6fe401ca5
parent0149dc845fd2ef954f487d50b41af1e5dafabd0b (diff)
downloadunperish-fcac0260ec2c040aefa96e069de66dbcb3837085.tar.gz
Make sure --webdirectory is used with publish-docs.
-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):