<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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