Skip to content

Commit

Permalink
modified arg parser
Browse files Browse the repository at this point in the history
  • Loading branch information
metulburr committed Jan 31, 2014
1 parent 49d2bbc commit dce1d1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions game.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
import argparse
import sys

parser = argparse.ArgumentParser(description='')
parser = argparse.ArgumentParser(description='Pong Arguments')
parser.add_argument('-c','--clean', action='store_true',
help='Remove all .pyc files and __pycache__ directories')
parser.add_argument('-f' , '--fullscreen', action='store_true',
help='start program with fullscreen')
parser.add_argument('-d' , '--difficulty', default='medium',
help='where DIFFICULTY is one of the strings [hard, medium, easy], set AI difficulty, default is medium, ')
parser.add_argument('-s' , '--size', nargs=2, default=[800,600],
help='where SIZE SIZE is WIDTH HEIGHT, set window size, defualt is 800 600')
parser.add_argument('-s' , '--size', nargs=2, default=[800,600], metavar=('WIDTH', 'HEIGHT'),
help='set window size to WIDTH HEIGHT, defualt is 800 600')
args = vars(parser.parse_args())

if __name__ == '__main__':
Expand Down

0 comments on commit dce1d1a

Please sign in to comment.