Handle arguments --filter-only and --filter-out.