Commits

Michał Górny committed ab4017d

Add --destructive-cleanup shorthand option.

Comments (0)

Files changed (1)

lib/flaggie/cli.py

 				in portdb
 	--drop-unmatched-flags	Drop flags which are not found in package's
 				IUSE, KEYWORDS and/or LICENSE variables
+	--destructive-cleanup	Shorthand for all of the above
 		
 Global actions are applied to the make.conf file. Actions are applied to
 the package.* files, for the packages preceding them.
 				cleanup_actions.add(DropUnmatchedPkgs)
 			elif a == '--drop-unmatched-flags':
 				cleanup_actions.add(DropUnmatchedFlags)
+			elif a == '--destructive-cleanup':
+				cleanup_actions.add(DropIneffective)
+				cleanup_actions.add(SortEntries)
+				cleanup_actions.add(SortFlags)
+				# DropUnmatchedPkgs is implicit here
+				cleanup_actions.add(DropUnmatchedFlags)
 			elif a == '--':
 				argv.remove(a)
 				break