Replace the --clean and --dirty flags with one --filter flag