-static struct argp_option options[] = {
- /* name, key, arg, flags, doc */
- {"host", 'h', "HOST", 0, "Host running RR server"},
- {"port", 'p', "PORT", 0, "Port of server"},
- {"user", 'u', "USERNAME", 0, "Username for conection"},
- {"game", 'g', "GAME", 0, "Game to join"},
- {"watch", 'w', 0, 0, "Watch instad of join"},
- { 0 }
+static struct option options[] = {
+ {"host", required_argument, 0, 'h'},
+ {"port", required_argument, 0, 'p'},
+ {"user", required_argument, 0, 'u'},
+ {"game", required_argument, 0, 'g'},
+ {"watch", no_argument, 0, 'w'},
+ {0, 0, 0, 0}