Skip to content
This repository has been archived by the owner on Jan 30, 2018. It is now read-only.

Commit

Permalink
Don't make --shuffle and --no-shuffle mutually exclusive.
Browse files Browse the repository at this point in the history
  • Loading branch information
spladug committed Jun 21, 2012
1 parent 211538e commit afd7a1a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions push/args.py
Expand Up @@ -132,14 +132,12 @@ def _parse_args(config):
parser.add_argument("--seed", dest="seed", action="store",
nargs="?", metavar="WORD", default=None,
help="name of push to copy the shuffle-order of")

if config.defaults.shuffle:
parser.add_argument("--no-shuffle", dest="shuffle",
action="store_false", default=True,
help="don't shuffle host list")
else:
parser.add_argument("--shuffle", dest="shuffle", default=False,
action="store_true", help="shuffle host list")
parser.add_argument("--shuffle", dest="shuffle",
default=config.defaults.shuffle,
action="store_true", help="shuffle host list")
parser.add_argument("--no-shuffle", dest="shuffle",
action="store_false",
help="don't shuffle host list")

flags_group = parser.add_argument_group("flags")
flags_group.add_argument("-t", dest="testing", action="store_true",
Expand Down

0 comments on commit afd7a1a

Please sign in to comment.