# -*- coding: utf-8 -*-

from nimp.commands._cis_command import *
from nimp.utilities.wwise import *

#-------------------------------------------------------------------------------
class BuildWwiseBanksCommand(CisCommand):
    abstract = 0
    #---------------------------------------------------------------------------
    def __init__(self):
        CisCommand.__init__(self, 'cis-wwise-build-banks', 'Builds Wwise Banks')

    #---------------------------------------------------------------------------
    def cis_configure_arguments(self, env, parser):
        parser.add_argument('platform',
                            help    = 'Platform to build',
                            metavar = '<PLATFORM>')

        parser.add_argument('--checkin',
                            help    = 'Automatically checkin result',
                            action  = "store_true",
                            default = False)
        return True

    #---------------------------------------------------------------------------
    def _cis_run(self, env):
        return build_wwise_banks(env)

# -*- coding: utf-8 -*-

from nimp.commands._cis_command import *
from nimp.utilities.wwise import *

#-------------------------------------------------------------------------------
class BuildWwiseBanksCommand(CisCommand):
    abstract = 0
    #---------------------------------------------------------------------------
    def __init__(self):
        CisCommand.__init__(self, 'cis-wwise-build-banks', 'Builds Wwise Banks')

    #---------------------------------------------------------------------------
    def cis_configure_arguments(self, env, parser):
        parser.add_argument('-p',
                            '--platform',
                            help    = 'Platform to build',
                            metavar = '<platform>')

        parser.add_argument('--checkin',
                            help    = 'Automatically checkin result',
                            action  = "store_true",
                            default = False)
        return True

    #---------------------------------------------------------------------------
    def _cis_run(self, env):
        return build_wwise_banks(env)

Replace "<platform>" with "-p <platform>" in CIS wwise command.
Replace "<platform>" with "-p <platform>" in CIS wwise command.

This is what the Buildbot configuration uses, and it makes sense. It
used to not break because we were ignoring unknown commandline flags.
