tests/test2
author Andrey Vlasovskikh <andrey.vlasovskikh@gmail.com>
Sun, 17 Oct 2010 15:15:11 +0400
changeset 124 9700357a6690
parent 111 e40251bf5a23
permissions -rwxr-xr-x
Added a package file for Arch Linux

#!/usr/bin/env python

from opster import command

a = 0

@command(usage="%name [-p|--pptx] [-x|--xslx] [-w|--wrdx] [-a|--abstract]")
def main(pptx=('p', False, 'should we generate pptx related code'),
         xslx=('x', False, 'should we generate xslx related code'),
         wrdx=('w', False, 'should we generate wrdx related code'),
         abstract=('a', False, 'should we generate abstract ifaces')):
    """
    Code generation tool. Run without params to regenerate all the code
    """
    global a
    a = 42

if __name__ == '__main__':
    main()
    assert a == 42, "WTF???"