Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2007

Tip: Looking for answers? Try searching our database.

Is there a module to organize and parse command line parameters?

Thread view: 
Ulrich Scholz - 14 Sep 2007 11:13 GMT
I'm designing a workbench that lifts some repetitive work from the
programmers' shoulders and that eases the combination of algorithms
that have been developed by different authors.

One part of the workbench is the support for command line parameters.
The workbench should provide the following features:

- modules announce their command line options to a centralized module
- the workbench parses the command line
- it provides the parameters to the respective modules
- it provides a help option, automatically compiled from all announced
options

Now my question: Is there a generic module around that has (some of)
these features?  I'm looking for something like log4j for logging.

Thanks,

Ulrich
Roedy Green - 14 Sep 2007 12:16 GMT
>- modules announce their command line options to a centralized module
>- the workbench parses the command line
>- it provides the parameters to the respective modules
>- it provides a help option, automatically compiled from all announced
>options

You get parms as strings.  Just what do you want?

I have written a parser for describing file trees on the command line
with subdirectory recursion.  see
http://mindprod.com/products1.html#FILTER

What could you parameterise?

1. number with a low/high bound.

2. names of single letter options and the name of a corresponding
boolean.  This is more a code generator than a package.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Thomas Kellerer - 14 Sep 2007 12:35 GMT
Ulrich Scholz, 14.09.2007 12:13:
> I'm designing a workbench that lifts some repetitive work from the
> programmers' shoulders and that eases the combination of algorithms
[quoted text clipped - 11 lines]
> Now my question: Is there a generic module around that has (some of)
> these features?  I'm looking for something like log4j for logging.

What about

http://commons.apache.org/cli/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.