candlepin/subscription-manager — pull request #993 by dgoodwin (2014-07-11 12:54:22+00:00)
Title: 1115499: Allow enable/disable repos in same command.

Combining was previously possible, but all enable options were processed
before disable, meaning --disable "*" --enable "a" would end up with "a" disabled.

Uses an optparse callback to process CLI arguments and store an ordered list
of tuples of enable/disable + repoid.

Assumes the user wants them processed in the order they appear on the command
line, the last match will be the one that wins for a particular repo.