process_getopt is a wrapper around getopt for bash script developers. It saves you time, reduces the chance for errors and increases the chance that doco is actually written. It is the bash equivalent of RedHat's popt and GNU's argp for C.
Be the first to post a text review of process-getopt. Rate and review a project by clicking thumbs up or thumbs down in the right column.
Fixup examples for -u where there's one option or no args
2009-04-10 <bhepple@freeshell.org> * Support bash -u flag * Move clean_process_getopt back to user script - we don't know when they are finished with the variables.
2009-04-10 <bhepple@freeshell.org> * Add del_opt * Add tiny * Updated copyright & links 2009-04-03 <bhepple@freeshell.org> * Support bash-2.04 * Call clean_process_getopt more effectively 2009-03-31 <bhepple@freeshell.org> * Add a test for a decent version of bash 2009-02-03 <bhepple@freeshell.org> * Support scripts with "sh -e" flag 2008-12-09 <bhepple@freeshell.org> * Add quiet option * Roll the various options checks into one loop for a bit more efficiency in add_opt
Remove . from PATH when searching for process-getopt in the samples. Break early on STOP_ON_FIRST_NON_OPT in samples.
2008-11-07 <bhepple@freeshell.org> * Fix option name uniqueness test * Add default-usage function * Add get_opt_* access functions * Add print_* functions * Change all scripts to package process-getopt functions in a single function * Add command-processor * Add testecho 2008-10-24 <bhepple@freeshell.org> * Add ability for process-getopt to be called as a script (mainly to get version) * Recognise STOP_ON_FIRST_NON_OPT * Various formatting fixes 2008-08-15 <bhepple@freeshell.org> * Initial version
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use
Thanks for your rating!
Would you also like to write a review?
Thanks for your review!
Get credit for your review by logging in via OpenID. Click your account provider: