platypush/__init__.py
def build_from_cmdline(cls, args):
        """
        Build the app from command line arguments.
        Params:
            args -- Your sys.argv[1:] [List of strings]
        """
        parser = argparse.ArgumentParser()
        parser.add_argument('--config', '-c', dest='config', required=False,
                            default=None, help=cls.config_file.__doc__)
        parser.add_argument('--pidfile', '-P', dest='pidfile', required=False,
                            default=None, help="File where platypush will " +
                            "store its PID, useful if you're planning to " +
                            "integrate it in a service")
        parser.add_argument('--no-capture-stdout', dest='no_capture_stdout',
                            required=False, action='store_true',
                            help="Set this flag if you have max stack depth " +
                            "exceeded errors so stdout won't be captured by " +
                            "the logging system")
        parser.add_argument('--no-capture-stderr', dest='no_capture_stderr',
                            required=False, action='store_true',
                            help="Set this flag if you have max stack depth " +
                            "exceeded errors so stderr won't be captured by " +
                            "the logging system")
        parser.add_argument('--redis-queue', dest='redis_queue',
                            required=False, action='store_true',
                            default=cls._default_redis_queue,
                            help="Name of the Redis queue to be used to internally deliver messages "
                                 "(default: platypush/bus)")

        opts, args = parser.parse_known_args(args)
        return cls(config_file=opts.config, pidfile=opts.pidfile,
                   no_capture_stdout=opts.no_capture_stdout,
                   no_capture_stderr=opts.no_capture_stderr,
                   redis_queue=opts.redis_queue)

        Build the app from command line arguments.
        Params:
            args -- Your sys.argv[1:] [List of strings]
        
Build the app from command line arguments.
Build the app from command line arguments .
def build_from_cmdline(cls, args):
        parser = argparse.ArgumentParser()
        parser.add_argument('--config', '-c', dest='config', required=False,
                            default=None, help=cls.config_file.__doc__)
        parser.add_argument('--pidfile', '-P', dest='pidfile', required=False,
                            default=None, help="File where platypush will " +
                            "store its PID, useful if you're planning to " +
                            "integrate it in a service")
        parser.add_argument('--no-capture-stdout', dest='no_capture_stdout',
                            required=False, action='store_true',
                            help="Set this flag if you have max stack depth " +
                            "exceeded errors so stdout won't be captured by " +
                            "the logging system")
        parser.add_argument('--no-capture-stderr', dest='no_capture_stderr',
                            required=False, action='store_true',
                            help="Set this flag if you have max stack depth " +
                            "exceeded errors so stderr won't be captured by " +
                            "the logging system")
        parser.add_argument('--redis-queue', dest='redis_queue',
                            required=False, action='store_true',
                            default=cls._default_redis_queue,
                            help="Name of the Redis queue to be used to internally deliver messages "
                                 "(default: platypush/bus)")
        opts, args = parser.parse_known_args(args)
        return cls(config_file=opts.config, pidfile=opts.pidfile,
                   no_capture_stdout=opts.no_capture_stdout,
                   no_capture_stderr=opts.no_capture_stderr,
                   redis_queue=opts.redis_queue)
def build_from_cmdline ( cls , args ) : parser = argparse . ArgumentParser ( ) parser . add_argument ( '--config' , '-c' , dest = 'config' , required = False , default = None , help = cls . config_file . __doc__ ) parser . add_argument ( '--pidfile' , '-P' , dest = 'pidfile' , required = False , default = None , help = "File where platypush will " + "store its PID, useful if you're planning to " + "integrate it in a service" ) parser . add_argument ( '--no-capture-stdout' , dest = 'no_capture_stdout' , required = False , action = 'store_true' , help = "Set this flag if you have max stack depth " + "exceeded errors so stdout won't be captured by " + "the logging system" ) parser . add_argument ( '--no-capture-stderr' , dest = 'no_capture_stderr' , required = False , action = 'store_true' , help = "Set this flag if you have max stack depth " + "exceeded errors so stderr won't be captured by " + "the logging system" ) parser . add_argument ( '--redis-queue' , dest = 'redis_queue' , required = False , action = 'store_true' , default = cls . _default_redis_queue , help = "Name of the Redis queue to be used to internally deliver messages " "(default: platypush/bus)" ) opts , args = parser . parse_known_args ( args ) return cls ( config_file = opts . config , pidfile = opts . pidfile , no_capture_stdout = opts . no_capture_stdout , no_capture_stderr = opts . no_capture_stderr , redis_queue = opts . redis_queue )
Build the app from command line arguments.
Build the app from command line arguments .
"""
        Build the app from command line arguments.
        Params:
            args -- Your sys.argv[1:] [List of strings]
        """
cls
args
args -- Your sys.argv[1
] [List of strings]
] [ List of strings ]