git @ Cat's Eye Technologies Samovar / 3d1f3c9
Initial work on branch for version 0.5 of Samovar. Chris Pressey 2 years ago
3 changed file(s) with 4 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
00 Samovar
11 =======
22
3 Version 0.4 | _Entry_ [@ catseye.tc](https://catseye.tc/node/Samovar)
3 Version 0.5 | _Entry_ [@ catseye.tc](https://catseye.tc/node/Samovar)
44 | _See also:_ [The League of Extraordinarily Dull Gentlemen](https://github.com/catseye/NaNoGenMo-Entries-2018/tree/master/league#readme)
55 ∘ [The Swallows](https://github.com/catseye/The-Swallows#readme)
66 ∘ [Maxixe](https://github.com/catseye/Maxixe#readme)
0 #!/usr/bin/env python
0 #!/usr/bin/env python3
11 # encoding: UTF-8
2
3 """\
4 samovar {option} input.samovar
5
6 Driver script for Samovar assertion-retraction engine.
7 """
82
93 from os.path import realpath, dirname, join
104 import sys
3333 help="Generate at least this many events for each scenario")
3434 argparser.add_argument("--max-events",
3535 type=int, default=1000000,
36 help="Assume something's gone wrong if more than this many events are generated")
36 help="Conclude that something has gone wrong and abort if more than this many events are generated")
3737 argparser.add_argument("--output-type",
3838 choices=('naive-text', 'events-json', 'scenarios-json',),
3939 default='naive-text',
4545 argparser.add_argument("--seed",
4646 type=int, default=None,
4747 help="Set random seed (to select moves deterministically, when randomness-type=python)")
48 argparser.add_argument('--version', action='version', version="%(prog)s 0.5")
4849
4950 options = argparser.parse_args(args)
5051