Commit Graph

12 Commits

Author SHA1 Message Date
Renato Silva 7fd66536cf Update the Bash example with the new Ruby front end. 2014-09-11 17:37:56 -03:00
Renato Silva ae63632a7e Update readme file for the new Bash front end, and other minor changes. 2014-09-11 17:22:46 -03:00
Renato Silva 4aca0ae67a New Bash front end to the Ruby implementation.
The pure Bash implementation is now installed as easyoptions.sh instead of just easyoptions, which is now a front end to the Ruby implementation.
2014-09-11 16:45:28 -03:00
Renato Silva d4448390c3 Fix the Bash implementation for not ignoring the options specified after arguments.
This was caused by the getopts builtin. Now the regular arguments are processed and removed from the parameter list before getopts is called, so it can parse all of the provided options, regardless of whether they were specified before or after regular arguments.
2014-09-11 10:22:00 -03:00
Renato Silva 3d8b0c3e15 Avoid variable exporting for Bash scripts.
Exporting should not be required and it may lead to security issues, for example access of a --password option by other applications.
2014-09-11 00:48:49 -03:00
Renato Silva 3faceb97dd Fix next option mistook for value of current option in Ruby version.
For example, if --foo requires a value and --foo --bar is specified in command line, then --bar would be mistakenly recognized as the value for --foo. Now a proper error is raised requiring a value for --foo.
2014-08-03 08:24:34 -03:00
Renato Silva d5aa1fd9a9 Small fix in readme file. 2014-07-27 08:49:49 -03:00
Renato Silva ce37a808f1 Fix exit command in a Bash example. 2014-07-23 22:31:27 -03:00
Renato Silva bf90464756 Small fix in readme file. 2014-07-09 23:45:22 -03:00
Renato Silva 7ae58258bc Add readme file. 2014-07-09 19:27:44 -03:00
Renato Silva 6129e08347 Add examples. 2014-07-09 19:27:00 -03:00
Renato Silva 3c3c8bba09 Initial commit. 2014-07-09 17:59:03 -03:00