[brailleblaster] Re: About the multiple subcommands feature

  • From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Mon, 30 Jul 2012 09:17:33 -0500

We have the cli package from Apache, but I haven't been using it. Our 
needs are quite simple. I think I'll go with the -multcom option.

John

On Mon, Jul 30, 2012 at 09:17:25AM +0100, Michael Whapples wrote:
> I probably would go with -c (short version) and --commands (long version).
> 
> Are you using one of the option parser libraries to help with this? I 
> don't know of ones for Java but I have used such libraries in Python and 
> they can help a lot, simplifies specifying the options, checking options 
> are valid and can auto-create help messages about valid options.
> 
> I am sure the Apache foundation have a project which will help with this.
> 
> Michael Whapples
> On 30/07/2012 07:50, Vic Beckley wrote:
> >John,
> >
> >Does the pneumonic have to be one character or can it be a word? I would
> >think -multi would work.
> >
> >
> >Best regards from Ohio, U.S.A.,
> >
> >Vic
> >E-mail: vic.beckley3@xxxxxxxxx
> >
> >
> >-----Original Message-----
> >From: brailleblaster-bounce@xxxxxxxxxxxxx
> >[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of John J. Boyer
> >Sent: Monday, July 30, 2012 2:23 AM
> >To: brailleblaster@xxxxxxxxxxxxx
> >Subject: [brailleblaster] Re: About the multiple subcommands feature
> >
> >Hi Vic,
> >
> >That is good to hear. It means that some suspected bugs aren't there. If
> >having to type exit is too much of a bother multiple subcommannds can be
> >enabled by an option. I'm having a little difficulty coming up with a
> >good mnnemonic name for that optionn.
> >
> >John
> >
> >On Mon, Jul 30, 2012 at 01:20:31AM -0400, Vic Beckley wrote:
> >>John,
> >>
> >>I was able to use multiple subcommands successfully. It worked just fine
> >for
> >>me.
> >>
> >>
> >>Best regards from Ohio, U.S.A.,
> >>
> >>Vic
> >>E-mail: vic.beckley3@xxxxxxxxx
> >>
> >>
> >>-----Original Message-----
> >>From: brailleblaster-bounce@xxxxxxxxxxxxx
> >>[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of John J. Boyer
> >>Sent: Friday, July 27, 2012 9:41 PM
> >>To: brailleblaster@xxxxxxxxxxxxx
> >>Subject: [brailleblaster] About the multiple subcommands feature
> >>
> >>When you give BrailleBlaster a subcommand now, it is executed, and you
> >>get a prompt asking for another command. You can type another or type
> >>exit. This is a bit inconvenient if you just want to execute a single
> >>subcommand. It will be turned on by a '-' option as soon as I think of a
> >>good option name. Otherwise it will be off. As stated, the reason for
> >>implementing it was to check for bugs. Incredibly, none has showed up so
> >>far. Successive translate and checktable commands work perfectly.
> >>
> >>A note: I will be working on BBIni . I think I can redirect stderr so
> >>that error messages generated by libxml2 will go to the
> >>liblouisutdml.log file.
> >>
> >>John
> >>
> >>-- John J. Boyer; President, Chief Software Developer Abilitiessoft,
> >>Inc. http://www.abilitiessoft.com Madison, Wisconsin USA Developing
> >>software for people with disabilities
> >>
> >>
> 

-- 
John J. Boyer; President, Chief Software Developer
Abilitiessoft, Inc.
http://www.abilitiessoft.com
Madison, Wisconsin USA
Developing software for people with disabilities


Other related posts: