X-Git-Url: https://svn.cri.ensmp.fr/git/minwii.git/blobdiff_plain/a10479e7e060f1294ecc685cf1106da1c6bb84e3..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)