home bbs files messages ]

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,832 of 243,242   
   Michael Sanders to Ben Bacarisse   
   Re: Usage/Help Screen Conventions   
   07 Nov 25 19:25:35   
   
   From: porkchop@invalid.foo   
      
   On Fri, 07 Nov 2025 13:08:26 +0000, Ben Bacarisse wrote:   
      
   > These options are, essentially, "modes".  The utility provides three   
   > things it can do and they can't be mixed.  Some utilities use alternate   
   > names: tinybase-query, tinybase-tag and tinybase-manual would all be   
   > symbolic links to one executable.  That's probably over the top for this   
   > program, but I would describe it as three separate use cases with three   
   > separate syntax lines.   
      
   Well hey there Ben, hope you're doing alright.   
      
   Also hope Janis & Richard are reading too as I've tried   
   to incorporate the best of all three of your replies.   
      
   Here's where I'm at (like your 'mode' anaology):   
      
   Usage: tinybase [ -q queries... | -t | -m ] [ files... ]   
      
   Options:   
      
     -q  query mode: find blocks with matching tags or wildcards   
         example: tinybase -q 'query1, query2' files   
         (if no files are given, reads from standard input)   
      
     -t  tag index mode: list all unique tags across the given files   
         example: tinybase -t files   
      
     -m  manual mode: show the built-in documentation   
      
   Notes:   
      
     Multiple queries are comma-separated.   
     Wildcards (*, ?) are supported in queries.   
     When no files are provided, stdin is read automatically.   
      
   --   
   :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