From fcac0260ec2c040aefa96e069de66dbcb3837085 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 24 Jul 2011 11:15:42 +0100 Subject: Make sure --webdirectory is used with publish-docs. --- unperish | 3 +++ 1 file changed, 3 insertions(+) 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): -- cgit v1.2.1