in idb/cli/commands/crash.py [0:0]
def _build_query(arguments: Namespace) -> CrashLogQuery:
if (
hasattr(arguments, "all")
and not arguments.all
and hasattr(arguments, "name")
and not arguments.name
and arguments.before is None
and arguments.since is None
and arguments.bundle_id is None
):
raise CrashDeleteException("Must pass --all if not other arguments specified")
return CrashLogQuery(
before=arguments.before,
since=arguments.since,
bundle_id=arguments.bundle_id,
name=getattr(arguments, "name", None),
)