diff options
author | Matt Goins <mjgoins@openflows.com> | 2009-01-07 16:45:25 -0500 |
---|---|---|
committer | Matt Goins <mjgoins@openflows.com> | 2009-01-07 16:45:25 -0500 |
commit | 499aa3840041d9ddd5c680adce059260059aabf9 (patch) | |
tree | 4c9d2c144e69213fbc9b1f76ba9bc20e7152439b /website/bugs/use_getopts_instead_of_getopt.mdwn | |
parent | c3b912f2506c3a150f128a77317085cea599a814 (diff) | |
parent | f8344402aebe5f0497a81934b980b9ed6ea7a6a2 (diff) |
Merge commit 'dkg/master'
Diffstat (limited to 'website/bugs/use_getopts_instead_of_getopt.mdwn')
-rw-r--r-- | website/bugs/use_getopts_instead_of_getopt.mdwn | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/website/bugs/use_getopts_instead_of_getopt.mdwn b/website/bugs/use_getopts_instead_of_getopt.mdwn index db087b4..2ec68d6 100644 --- a/website/bugs/use_getopts_instead_of_getopt.mdwn +++ b/website/bugs/use_getopts_instead_of_getopt.mdwn @@ -2,3 +2,18 @@ Since Monkeysphere is using bash, it would be nice to use the shell build in getopts function, instead of the external getopt program. This would reduce an external dependency, which would definitely be better for portability. + +--- + +So it looks like the sh built-in getopts does not include long options +(eg. "--expire"). Is it worth getting rid of the long options for +this? + +--- + +Why not just get rid of getopts altogether and perform a simple +argument-processing loop with bash string tests? We're only invoking +getopt in three places, and each invocation is no more complex than +three arguments -- and most arguments take a separate parameter, which +means that handling tricky arg blobs like -aCxr are not gonna be +supported anyway. |