new template for help messages

main
rhetorica 2026-01-30 18:48:05 -08:00
parent 491f624b6b
commit e64d33d217
1 changed files with 5 additions and 1 deletions

View File

@ -44,7 +44,11 @@ main(integer src, integer n, string m, key outs, key ins, key user) {
string msg = "";
string action = gets(argv, 1);
if(argc == 1 || action == "help") {
msg = "Syntax: " + PROGRAM_NAME + " <action>";
msg = PROGRAM_NAME + " version " + CLIENT_VERSION + " (" + CLIENT_VERSION_TAGS + ")"
+ "\nUsage: " + PROGRAM_NAME + " <action> [<arguments>]"
+ "\nSupported actions:"
+ "\n help: this message"
;
}
if(msg != "")