def _RunSubCommand(self, func):
    try:
        (self.sub_opts, self.args) = getopt.getopt(self.args, self.command_spec.supported_sub_args)
        metrics.LogCommandParams(sub_opts=self.sub_opts)
        return func(self)
    except getopt.GetoptError:
        self.RaiseInvalidArgumentException()
def _RunSubCommand(self, func):
    try:
        (self.sub_opts, self.args) = getopt.getopt(self.args, self.command_spec.supported_sub_args)
        metrics.LogCommandParams(sub_opts=self.sub_opts)
        return func(self)
    except getopt.GetoptError:
        self.RaiseInvalidArgumentException()