'Execute application from command-line.
Arguments:
argv (List[str]): The list of command-line arguments.
Defaults to ``sys.argv``.'

def execute_from_commandline(self, argv=None):

    if (argv is None):
        argv = list(sys.argv)
    self.maybe_patch_concurrency(argv)
    self.on_concurrency_setup()
    self.early_version(argv)
    argv = self.setup_app_from_commandline(argv)
    self.prog_name = os.path.basename(argv[0])
    return self.handle_argv(self.prog_name, argv[1:])
