Commits

Alexander Shorin committed fb5400c

Fix help message for daemons.

Comments (0)

Files changed (1)

 
 
 class CouchConfig(Document):
-    """"""
+
     def bind(self, db, docid):
         self._db = db
         self._docid = docid
             sys.argv[1:] = ['run', '-c',
                             os.path.join(os.path.dirname(sys.argv[0]),
                                          'config.ini')]
-        if sys.argv[1].startswith('-'):
+        if sys.argv[1].startswith('-') and sys.argv[1] != '--help':
             sys.argv.insert(1, 'run')
         self.args, unknown = self.argparser.parse_known_args()
         self.setup_config()
 
     def prepare_argparser(self):
         super(CouchdbProcess, self).prepare_argparser()
-        parser = self.subargparser.add_parser('register')
+        parser = self.subargparser.add_parser(
+            'register', help='Registers process in CouchDB')
         parser.add_argument(
             '-s', '--server',
             dest='server',