code: def _check_args(self):
      from dvc.exceptions import DvcException
  
      if not self.args.stdin and not self.args.targets:
          raise DvcException("`targets` or `--stdin` needed")
  
      if self.args.stdin and self.args.targets:
          raise DvcException("cannot have both `targets` and `--stdin`")
  
      if self.args.non_matching and not self.args.details:
          raise DvcException(
              "`--non-matching` is only valid with `--details`"
          )
  
      if self.args.all and not self.args.details:
          raise DvcException("`--all` is only valid with `--details`")
  
      if self.args.quiet and self.args.details:
          raise DvcException(
              "cannot use both `--details` and `--quiet`"
          )
  
file_path: dvc/dvc/commands/check_ignore.py
imports: from dvc.cli import completion, formatter
  from dvc.cli.command import CmdBase
  from dvc.cli.utils import append_doc_link
  from dvc.ui import ui
label_desc: Use image node_id 6 for calling the CmdCheckIgnore obj's underlying member method code with example usage: obj._check_args() without return types