Quick actions

cmd+k|ctrl+k

Navigation

Languages

cmd run

Snippet info

Language

Cpp

Visibility

public

Author

evine

Created

2018-09-04T20:24:56Z

Updated

2018-09-11T19:30:09Z

#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include "cmd.h"

int main(int argc, char **argv) {
    cmd_init(argc, argv);
    
    if(cmd_has("apple")) printf("here's an apple\n");
    if(cmd_has("orange")) printf("here's an orange\n");
    if(cmd_has("pear")) printf("here's a pear\n");
    
    cmd_finish();
    return 0;
}
INFO