chriskiehl / Gooey

Turn (almost) any Python command line program into a full GUI application with one line
MIT License
20.69k stars 1.02k forks source link

resolve #763 -- choose multiselect for options with choices and nargs=+ or * #892

Open jacadzaca opened 1 year ago

jacadzaca commented 1 year ago

fix #763

Example:

from gooey import Gooey, GooeyParser

@Gooey
def main():
    parser = GooeyParser()
    parser.add_argument(
        'some_argument',
        nargs='+',
        choices=['jaca', 'paca'],
    )
    argv = parser.parse_args()

    print(argv.some_argument)

if __name__ == '__main__':
    main()

TL;DR: