]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Improve the rpn help message
authorterencehill <piuntn@gmail.com>
Wed, 17 Jul 2024 21:25:15 +0000 (23:25 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 24 Jul 2024 15:09:00 +0000 (17:09 +0200)
qcsrc/common/command/rpn.qc

index 55b1a561daad3ccc0626a4906f35df40dd53f738..106c5890cd245c2b56bab5cfa51e225da043a37e 100644 (file)
@@ -571,7 +571,7 @@ LABEL(skip_difference)
                case CMD_REQUEST_USAGE:
                {
                        LOG_HELP("Usage:^3 ", GetProgramCommandPrefix(), " rpn <expression>");
-                       LOG_HELP("    Operator description (x: string, s: set, f: float):");
+                       LOG_HELP("  ^2Operations:");
                        LOG_HELP("    x pop ----------------------------->     : removes the top");
                        LOG_HELP("    x dup -----------------------------> x x : duplicates the top");
                        LOG_HELP("    x x exch --------------------------> x x : swap the top two");
@@ -603,8 +603,13 @@ LABEL(skip_difference)
                        LOG_HELP("    x /MD4 digest ---------------------> x   : MD4 digest");
                        LOG_HELP("    x /SHA256 digest ------------------> x   : SHA256 digest");
                        LOG_HELP("    x /formatstring sprintf1s ---------> x   : sprintf with 1 string (pad, cut)");
+                       LOG_HELP("    x fexists -------------------------> f   : checks if a file exists");
                        LOG_HELP("    x eval ---------------------------->     : does something eval");
-                       LOG_HELP("    Set operations operate on 'such''strings'.");
+                       LOG_HELP("");
+                       LOG_HELP("  ^2Notes:");
+                       LOG_HELP("    f: float");
+                       LOG_HELP("    x: string defined like this: /abc or \"/abc def\"");
+                       LOG_HELP("    s: string defined like x and containing a set of space-separated strings");
                        LOG_HELP("    Unknown tokens insert their cvar value.");
                        return;
                }