Граф коммитов

6 коммитов

Автор SHA1 Сообщение Дата
Matthew Rothenberg
d2eb563953 single randomSeed Option value, handled as flag.Value
Best of both worlds, this allows for a single int64 value in the
Options struct, but at the same time we can do `—random` from command
line with no args and have a default value Chosen.
2017-04-26 12:21:12 -04:00
Matthew Rothenberg
f50c3b5e14 allow setting randomization via flags
allows for setting randomization with flags, but also modifies the
Options struct to now have two separate values

Overall this relates in a much more understandable UI from a user
perspective, since the normal case for randomization will be a user
just saying “run these out of order please” — and in a rare case they
may wish to additionally supply a seed to try to reproduce an older run
to trigger the same error condition.
2017-04-25 14:50:58 -04:00
Matthew Rothenberg
0eed963c63 switch Random opt from bool to int64
This allows for us to propagate the seed value around, and not have to
have two different values in Options when we want to allow
specification of seed.  It does introduce some “magic values”, but the
document them in the Options struct docstrings.
2017-04-25 11:42:40 -04:00
Matthew Rothenberg
4a754b26a5 allow randomizing scenario order 2017-04-24 21:10:55 -04:00
gedi
e2069934b3 allow run options to configure output writer 2016-10-30 22:34:39 +02:00
gedi
49e59d9296 add method to allow running from go source, without flags, see #50 2016-10-28 17:48:39 +03:00