docs+tools: improve ndnsec help, error messages, and manual page

Exit with status code 2 on malformed command line

Refs: #3777
Change-Id: Id682a5d69c15c74cfa1903db38b5389936f5be58
diff --git a/tools/ndnsec/util.cpp b/tools/ndnsec/util.cpp
index 1a4b8f4..4895ed3 100644
--- a/tools/ndnsec/util.cpp
+++ b/tools/ndnsec/util.cpp
@@ -23,6 +23,8 @@
 
 #include "ndn-cxx/security/impl/openssl.hpp"
 
+#include <unistd.h>
+
 namespace ndn {
 namespace ndnsec {
 
@@ -42,7 +44,7 @@
     return true;
   }
 
-  pw0 = getpass("Confirm:");
+  pw0 = getpass("Confirm: ");
   if (!pw0) {
     OPENSSL_cleanse(&password1.front(), password1.size());
     return false;