X-Git-Url: https://svn.cri.ensmp.fr/git/minwii.git/blobdiff_plain/b8f9f9c9575f2932e2e2ea4a3238b739f47acf33..c760cb0bd85074fa71ce938b0b5fc657edce827b:/src/minwii/minwii_fullscreen.py?ds=inline diff --git a/src/minwii/minwii_fullscreen.py b/src/minwii/minwii_fullscreen.py index 54314ce..966700c 100755 --- a/src/minwii/minwii_fullscreen.py +++ b/src/minwii/minwii_fullscreen.py @@ -6,7 +6,7 @@ $Id$ $URL$ """ - +from optparse import OptionParser import pygame from minwii.app import MinWii @@ -18,4 +18,19 @@ def main(wiimoteSupport, fullscreen) : pygame.quit() if __name__ == "__main__" : - main(True, True) + usage = "%prog [options]" + op = OptionParser(usage) + + op.add_option("--no-wii", dest="wiimoteSupport" + , action="store_false" + , default=True + , help = u"désactivation du support des wiimotes" + u" [%default]") + + op.add_option("--no-fullscreen", dest="fullscreen" + , action="store_false" + , default=True + , help = u"désactivation du mode plein écran" + u" [%default]") + options, args = op.parse_args() + main(options.wiimoteSupport, options.fullscreen)