def reassign_arguments(self):
        """Deal with optional stringlist before a required one."""
        condition = (
            "variable-list" in self.arguments and
            "list-of-flags" not in self.arguments
        )
        if condition:
            self.arguments["list-of-flags"] = (
                self.arguments.pop("variable-list"))
            self.rargs_cnt = 1
Deal with optional stringlist before a required one.