Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c    |    Meh, in C you gotta define EVERYTHING    |    243,242 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 241,899 of 243,242    |
|    Michael Sanders to Keith Thompson    |
|    Re: Usage/Help Screen Conventions    |
|    12 Nov 25 00:01:11    |
   
   From: porkchop@invalid.foo   
      
   On Fri, 07 Nov 2025 15:24:25 -0800, Keith Thompson wrote:   
      
   > $ rm   
   > rm: missing operand   
   > Try 'rm --help' for more information.   
      
   Tentative start towards context sensitive help...   
      
   int errmesg(int e) {   
    static const char *m[] = {   
    "Missing or unrecognized option",   
    "-m takes no arguments or files",   
    "-t does not take a query argument",   
    "-t requires one or more files or stdin input",   
    "-r (interactive REPL) requires a TTY",   
    "-r does not take a query argument",   
    "-r requires one or more files",   
    "-q= requires a query argument",   
    "-q= argument cannot be empty",   
    "Invalid characters in query",   
    "-q= requires one or more files or stdin input",   
    "Unknown or unsupported option"   
    };   
    if (e < 0 || e >= (int)(sizeof(m)/sizeof(m[0]))) e = 0;   
    fprintf(stderr,   
    "tinybase: option %s\nTry tinybase -h for more info\n", m[e]);   
    return e;   
   }   
      
   --   
   :wq   
   Mike Sanders   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca