def main(self, argv=None, plugins=None):
        # Parse any cmd line args.
        if argv is None:
            argv = []
        self.parse_command_line(argv)

        if plugins is None:
            plugins = get_plugins()

        plugins += get_custom_plugins()

        # Create the application
        prefs = preference_manager.preferences
        app = MayaviWorkbenchApplication(plugins=plugins,
                                         preferences=prefs,
                                         start_gui_event_loop=self.start_gui_event_loop)
        self.application = app

        # Setup the logger.
        self.setup_logger()

        # Start the application.
        app.run()
RESTful CRUD controller
dataset/ETHPy150Open enthought/mayavi/mayavi/plugins/app.py/Mayavi.main--crossover with--dataset/ETHPy150Open sahana/eden/controllers/vehicle.py/item