def define_argparse():
    ' todo, find a way to use this effectively '
    import argparse
    parser = argparse.ArgumentParser(description='IBEIS super setup')

    def add_flag(group, name, help=None):
        group.add_argument(name.replace('--', ''), action='store_true', default=False, help=help)
    g1 = parser.add_argument_group('setup')
    add_flag(g1, 'bootstrap', help='outputs commands to install prereqs')
    add_flag(g1, 'ensure', help='ensures that all repos are checked out')
    add_flag(g1, 'build', help='builds python packages')
    add_flag(g1, 'develop', help='installs packages in developer mode')
    add_flag(g1, 'dcnn', help='setup dcnn packages')
    g4 = parser.add_argument_group('maintenance')
    add_flag(g4, 'pull', help='pulls all IBIES repos')
    g3 = parser.add_argument_group('extern')
    add_flag(g3, 'no_qt')
    add_flag(g3, 'no_gui')
    add_flag(g3, 'ignore_opencv')
    g2 = parser.add_argument_group('utils')
    add_flag(g2, 'move_wildme', help='changes to the wildme repos')
    args = parser.parse_args()
    return args
todo, find a way to use this effectively
def define_argparse():
    '  '
    import argparse
    parser = argparse.ArgumentParser(description='IBEIS super setup')

    def add_flag(group, name, help=None):
        group.add_argument(name.replace('--', ), action='store_true', default=False, help=help)
    g1 = parser.add_argument_group('setup')
    add_flag(g1, 'bootstrap', help='outputs commands to install prereqs')
    add_flag(g1, 'ensure', help='ensures that all repos are checked out')
    add_flag(g1, 'build', help='builds python packages')
    add_flag(g1, 'develop', help='installs packages in developer mode')
    add_flag(g1, 'dcnn', help='setup dcnn packages')
    g4 = parser.add_argument_group('maintenance')
    add_flag(g4, 'pull', help='pulls all IBIES repos')
    g3 = parser.add_argument_group('extern')
    add_flag(g3, 'no_qt')
    add_flag(g3, 'no_gui')
    add_flag(g3, 'ignore_opencv')
    g2 = parser.add_argument_group('utils')
    add_flag(g2, 'move_wildme', help='changes to the wildme repos')
    args = parser.parse_args()
    return args