unit passing fixed, status update fixes
[melted_gui] / src / opts.c
index e993080..109ba1f 100644 (file)
@@ -34,7 +34,7 @@ static const char short_options [] = "h";
 static const struct option long_options [] =
 {
     { "host",                   required_argument,    NULL,   '0'},
-    { "player",                 required_argument,    NULL,   '1'},
+    { "unit",                   required_argument,    NULL,   '1'},
     { "help",                   no_argument,          NULL,   'h'},
     { 0,                        0,                    0,      0}
 };
@@ -68,7 +68,7 @@ int instance_opt(int argc, char** argv, instance_t* app)
                 strncpy(app->players.host, optarg, PATH_MAX);
                 break;
 
-            /** --player */
+            /** --unit */
             case '1':
                 app->players.item[app->players.count].unit = atol(optarg);
                 app->players.item[app->players.count].idx = app->players.count;
@@ -93,6 +93,6 @@ void instance_usage(void)
         stderr,
         "Usage:\n"
         "\t--host=<STRING>    Host name of melted server\n"
-        "\t--player=<INT>     Player to use (e.g. unit number)\n"
+        "\t--unit=<INT>       Player to use (e.g. unit number)\n"
     );
 };