Parsing the command line

Discussion in 'Java' started by lordy, Jun 26, 2006.

  1. lordy

    lordy Guest

    What is the "Best Practice" for parsing the commandline (GNU sytle) with
    Java 1.4 in a commercial project ?

    Jakarka Commons CLI?
    Jargs?
    Re-invent wheel?
    Other?

    Cheers,
    Lordy
    lordy, Jun 26, 2006
    #1
    1. Advertising

  2. lordy

    Dale King Guest

    lordy wrote:
    > What is the "Best Practice" for parsing the commandline (GNU sytle) with
    > Java 1.4 in a commercial project ?
    >
    > Jakarka Commons CLI?
    > Jargs?
    > Re-invent wheel?
    > Other?


    Not sure there is a "best practice" but another choice to add to your
    list is the Java version of GNU's getopt:

    http://www.urbanophile.com/arenn/hacking/download.html

    This is a good choice if you are porting a C app to Java that used getopt.

    --
    Dale King
    Dale King, Jun 28, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steven Bethard
    Replies:
    1
    Views:
    273
    Steven Bethard
    Oct 11, 2006
  2. Steven Bethard
    Replies:
    0
    Views:
    267
    Steven Bethard
    Oct 24, 2006
  3. Steven Bethard
    Replies:
    0
    Views:
    275
    Steven Bethard
    Dec 5, 2006
  4. Steven Bethard
    Replies:
    0
    Views:
    283
    Steven Bethard
    Jan 5, 2007
  5. Steven Bethard
    Replies:
    0
    Views:
    285
    Steven Bethard
    Jan 17, 2007
Loading...

Share This Page