Parameters (command line, preferences, user input)

Discussion in 'Java' started by Kenneth P. Turvey, Feb 25, 2006.

  1. -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    I'm looking for a general way to handle a fairly large number of
    parameters used by a program that I can apply to future work I do. These
    programs are all command line programs and don't have a GUI.

    I started implementing this for a project I'm working on and it just
    seemed like something that someone else has to have done.

    Ideally, what I would like is something like this:

    1) Reads in default parameters from preferences.
    2) Overrides these defaults using command line switches (long ones)
    3) Prompt the user to input anything that is still required.
    4) Writes out any changes the user made to preferences (not including
    command line changes, probably). The user should be able to disable
    this with a command line switch.

    There should be a simple way of handling dependencies e.g. XoverProportion
    doesn't matter since Xover wasn't selected so the user isn't prompted for
    it.

    Access to parameters should be very fast.

    Is there some open source code out there for this?

    Thank you,

    - --
    Kenneth P. Turvey <>
    Phone : (314) 255-2199

    XMPP IM:
    Yahoo IM: kpturvey2
    AIM IM: kpturvey3
    ICQ IM: 320005929
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.1 (GNU/Linux)

    iD8DBQFEABwni2ZgbrTULjoRAtadAJ91AUwgPKKGztDvI5ApHKT7YN3eFACaA6hp
    Owjc/90Yl6x/iJdMXPQvkoE=
    =+49/
    -----END PGP SIGNATURE-----
     
    Kenneth P. Turvey, Feb 25, 2006
    #1
    1. Advertising

  2. Kenneth P. Turvey

    Paul Hamaker Guest

    Paul Hamaker, Feb 25, 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. Jonck van der Kogel
    Replies:
    2
    Views:
    987
    Jonck van der Kogel
    May 27, 2004
  2. Brian Wallis

    Saving/retrieving user preferences

    Brian Wallis, Jun 9, 2005, in forum: Python
    Replies:
    7
    Views:
    373
    Brian Wallis
    Jun 11, 2005
  3. Replies:
    4
    Views:
    426
    Steven Bethard
    Sep 24, 2007
  4. Paul
    Replies:
    1
    Views:
    112
    Sebastian Hungerecker
    Apr 24, 2007
  5. Replies:
    5
    Views:
    85
    Henry Law
    Jan 17, 2007
Loading...

Share This Page