Skip to content

Commit

Permalink
Added example usage from readme to defaults in argparser
Browse files Browse the repository at this point in the history
  • Loading branch information
tychovdo committed Dec 30, 2017
1 parent ed602f5 commit 9b12ef4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pacman.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,15 +520,15 @@ def readCommand(argv):
parser = OptionParser(usageStr)

parser.add_option('-n', '--numGames', dest='numGames', type='int',
help=default('the number of GAMES to play'), metavar='GAMES', default=1)
help=default('the number of GAMES to play'), metavar='GAMES', default=6000)
parser.add_option('-l', '--layout', dest='layout',
help=default(
'the LAYOUT_FILE from which to load the map layout'),
metavar='LAYOUT_FILE', default='mediumClassic')
metavar='LAYOUT_FILE', default='smallGrid')
parser.add_option('-p', '--pacman', dest='pacman',
help=default(
'the agent TYPE in the pacmanAgents module to use'),
metavar='TYPE', default='KeyboardAgent')
metavar='TYPE', default='PacmanDQN')
parser.add_option('-t', '--textGraphics', action='store_true', dest='textGraphics',
help='Display output as text only', default=False)
parser.add_option('-q', '--quietTextGraphics', action='store_true', dest='quietGraphics',
Expand All @@ -550,7 +550,7 @@ def readCommand(argv):
parser.add_option('-a', '--agentArgs', dest='agentArgs',
help='Comma separated values sent to agent. e.g. "opt1=val1,opt2,opt3=val3"')
parser.add_option('-x', '--numTraining', dest='numTraining', type='int',
help=default('How many episodes are training (suppresses output)'), default=0)
help=default('How many episodes are training (suppresses output)'), default=5000)
parser.add_option('--frameTime', dest='frameTime', type='float',
help=default('Time to delay between frames; <0 means keyboard'), default=0.1)
parser.add_option('-c', '--catchExceptions', action='store_true', dest='catchExceptions',
Expand Down

0 comments on commit 9b12ef4

Please sign in to comment.