fuck this is actually kinda nice i hate C switch (worm.opt) { default: if (streq...

@emiliamicrosystems@brain.worm.pink

fuck this is actually kinda nice i hate C

    switch (worm.opt) { default:
            if (streq(worm.lng, "foo")) {
                    printf("got foo\n");
                    break;
            } else if (streq(worm.lng, "help")) case 'h': {
                    printf("got help\n");
                    break;
            } else if (streq(worm.lng, "version")) case 'v': {
                    printf("got version\n");
                    break;
            } else {
                    printf("got unrecognized option\n");
                    break;
            }
    }

}