def __init__(self):
        """Initialyze the command
        """
        self.parser = argparse.ArgumentParser(description=self.__doc__)
        self.parser.add_argument(
            "-c", "--config", type=str, metavar="CONFIG",
            help="configuration file"
        )
        self.parser.add_argument(
            "-i", "--input", nargs='+', type=str, metavar="DIRECTORY OR FILE",
            help="directories and/or files containing documentation\'s source files"
        )
        self.parser.add_argument(
            "-o", "--output", type=str, metavar="FILE",
            help="rendered output file"
        )
        self.parser.add_argument(
            "-v", "--version", action='version', version='%(prog)s ' + __version__
        )
        self.parser.add_argument(
            "-n", "--no-validate", action='store_const', const=True,
            help="disable validation"
        )
        self.parser.add_argument(
            "-a", "--arguments", nargs='+', type=str, metavar="ARGUMENT",
            help="documentation\'s arguments arg1=value1 arg2=value2"
        )
        self.parser.add_argument(
            "-y", "--dry-run", action='store_const', const=True,
            help="analyse config's and source's files without building the documentation"
        )
        self.parser.add_argument(
            "-w", "--watch", action='store_const', const=True,
            help="re-render the documentation each time a source's file or a template's file changes"
        )
        self.parser.add_argument(
            "-q", "--quiet", action='store_const', const=True,
            help="does not display logging information below warning level"
        )
        self.parser.add_argument(
            "-qq", "--silence", action='store_const', const=True,
            help="does not display any logging information"
        )
        self.parser.add_argument(
            "-t", "--traceback", action='store_const', const=True,
            help="display traceback when an exception raised"
        )

        self.logger = logging.getLogger()
def __init__ ( self ) : self . parser = argparse . ArgumentParser ( description = self . __doc__ ) self . parser . add_argument ( "-c" , "--config" , type = str , metavar = "CONFIG" , help = "configuration file" ) self . parser . add_argument ( "-i" , "--input" , nargs = '+' , type = str , metavar = "DIRECTORY OR FILE" , help = "directories and/or files containing documentation\'s source files" ) self . parser . add_argument ( "-o" , "--output" , type = str , metavar = "FILE" , help = "rendered output file" ) self . parser . add_argument ( "-v" , "--version" , action = 'version' , version = '%(prog)s ' + __version__ ) self . parser . add_argument ( "-n" , "--no-validate" , action = 'store_const' , const = True , help = "disable validation" ) self . parser . add_argument ( "-a" , "--arguments" , nargs = '+' , type = str , metavar = "ARGUMENT" , help = "documentation\'s arguments arg1=value1 arg2=value2" ) self . parser . add_argument ( "-y" , "--dry-run" , action = 'store_const' , const = True , help = "analyse config's and source's files without building the documentation" ) self . parser . add_argument ( "-w" , "--watch" , action = 'store_const' , const = True , help = "re-render the documentation each time a source's file or a template's file changes" ) self . parser . add_argument ( "-q" , "--quiet" , action = 'store_const' , const = True , help = "does not display logging information below warning level" ) self . parser . add_argument ( "-qq" , "--silence" , action = 'store_const' , const = True , help = "does not display any logging information" ) self . parser . add_argument ( "-t" , "--traceback" , action = 'store_const' , const = True , help = "display traceback when an exception raised" ) self . logger = logging . getLogger ( )
Initialyze the command