Wrong exit code from command line parsing
[/data/home/hayen/repos/nikola-site]> /opt/nikola/bin/nikola unknown
[2014-10-27T09:55:38Z] ERROR: Nikola: Unknown command unknown
[/data/home/hayen/repos/nikola-site]> echo $?
0

That should be "1" or so. I am using commands with "&&" and expect
Nikola to abort, if there was a problem. Not happening in this case.

diff --git a/nikola/__main__.py b/nikola/__main__.py
index f49280078..84af6df41 100644
--- a/nikola/__main__.py
+++ b/nikola/__main__.py
@@ -270,12 +270,12 @@ class DoitNikola(DoitMain):
             args = ['version']
         if args[0] not in sub_cmds.keys():
             LOGGER.error("Unknown command {0}".format(args[0]))
-            return False
+            return 3
         if not isinstance(sub_cmds[args[0]], (Command, Help)):  # Is a doit command
             if not self.nikola.configured:
                 LOGGER.error("This command needs to run inside an "
                              "existing Nikola site.")
-                return False
+                return 3
 
         return super(DoitNikola, self).run(cmd_args)
 
['nikola/__main__.py']