def load_cli_args(self):
        """
        Parse command line arguments and return only the non-default ones

        :Retruns: dict
            a dict of any non-default args passed on the command-line.
        """
        parser = argparse.ArgumentParser(description='QTPyLib Reporting',
                                         formatter_class=argparse.ArgumentDefaultsHelpFormatter)

        parser.add_argument('--port', default=self.args["port"],
                            help='HTTP port to use', type=int)
        parser.add_argument('--host', default=self.args["host"],
                            help='Host to bind the http process to')
        parser.add_argument('--blotter',
                            help='Use this Blotter\'s MySQL server settings')
        parser.add_argument('--nopass',
                            help='Skip password for web app (flag)',
                            action='store_true')

        # only return non-default cmd line args
        # (meaning only those actually given)
        cmd_args, _ = parser.parse_known_args()
        args = {arg: val for arg, val in vars(
            cmd_args).items() if val != parser.get_default(arg)}
        return args
def load_cli_args ( self ) : parser = argparse . ArgumentParser ( description = 'QTPyLib Reporting' , formatter_class = argparse . ArgumentDefaultsHelpFormatter ) parser . add_argument ( '--port' , default = self . args [ "port" ] , help = 'HTTP port to use' , type = int ) parser . add_argument ( '--host' , default = self . args [ "host" ] , help = 'Host to bind the http process to' ) parser . add_argument ( '--blotter' , help = 'Use this Blotter\'s MySQL server settings' ) parser . add_argument ( '--nopass' , help = 'Skip password for web app (flag)' , action = 'store_true' ) cmd_args , _ = parser . parse_known_args ( ) args = { arg : val for arg , val in vars ( cmd_args ) . items ( ) if val != parser . get_default ( arg ) } return args
Parse command line arguments and return only the non-default ones

        :Retruns: dict
            a dict of any non-default args passed on the command-line.