Changeset 875

Show
Ignore:
Timestamp:
06/26/07 14:06:00 (2 years ago)
Author:
lilo_booter
Message:

+ Possibly useful testing switch - --all will play everything on the stack

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jahtools/jbatch/jbatch.py

    r867 r875  
    1717Options: 
    1818 
     19    --all             : play everything on the stack 
    1920    -n, --no-key-grab : disable terminal io functionality 
    2021    -v, --video=store : specify video store (default: sdl_video:) 
     
    5556        key_grab = True 
    5657        key = None 
     58        all = False 
    5759 
    5860        for i in sys.argv[ 1: ]: 
     
    6870                elif i in ( "-a", "--audio" ): 
    6971                        key = "audio" 
     72                elif i in ( "--all", ): 
     73                        all = True 
    7074                elif i in [ "--help" ]: 
    7175                        usage( ) 
     
    9094                        rpn.push( "jstack.oml" ) 
    9195                        rpn.push_args( ops ) 
    92                         if not rpn.empty( ): rpn.push( "play" ) 
     96                        while not rpn.empty( ):  
     97                                rpn.push( "play" ) 
     98                                if not all: break 
    9399                except jstack.stack_exception, e: 
    94100                        print e