1. Michał Górny
  2. flaggie

Commits

Michał Górny  committed 4b81c31

Add a --cleanup action to satisfy your daily needs.

  • Participants
  • Parent commits b481c4d
  • Branches master

Comments (0)

Files changed (1)

File lib/flaggie/cli.py

View file
 				(please note this will drop comments)
 	--sort-flags		Sort package.* flags by name
 	--sort			Shorthand for --sort-entries and --sort-flags
+	--cleanup		Shorthand for --drop-ineffective and --sort
 		
 Global actions are applied to the make.conf file. Actions are applied to
 the package.* files, for the packages preceding them.
 			elif a == '--sort':
 				cleanup_actions.add(SortEntries)
 				cleanup_actions.add(SortFlags)
+			elif a == '--cleanup':
+				cleanup_actions.add(DropIneffective)
+				cleanup_actions.add(SortEntries)
+				cleanup_actions.add(SortFlags)
 			elif a == '--':
 				argv.remove(a)
 				break