code: def samples_from_cli(self, opts, parameters=None, **kwargs):
          if parameters is None and opts.parameters is None:
              parameters = self.variable_args
          elif parameters is None:
              parameters = opts.parameters
          _, extra_actions = self.extra_args_parser()
          extra_args = [act.dest for act in extra_actions]
          kwargs = self._get_optional_args(extra_args, opts, **kwargs)
          return self.read_samples(parameters, **kwargs)