summaryrefslogtreecommitdiff
path: root/website/bugs/use_getopts_instead_of_getopt.mdwn
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2009-01-31 16:39:40 -0500
committerMicah Anderson <micah@riseup.net>2009-01-31 16:39:40 -0500
commita693e9be61d02196e2583e9096cb049982a26668 (patch)
tree48a558a3d112106005f88314a184c57336ef4bb7 /website/bugs/use_getopts_instead_of_getopt.mdwn
parentb024a2d3cacfe2fdb410daa830e04b2d9dfbcf4e (diff)
parent3ebaf05d01b7d4639980608feefeef7287000634 (diff)
Merge commit 'jrollins/master'
Conflicts: website/sidebar.mdwn
Diffstat (limited to 'website/bugs/use_getopts_instead_of_getopt.mdwn')
-rw-r--r--website/bugs/use_getopts_instead_of_getopt.mdwn9
1 files changed, 9 insertions, 0 deletions
diff --git a/website/bugs/use_getopts_instead_of_getopt.mdwn b/website/bugs/use_getopts_instead_of_getopt.mdwn
index af4c17a..2ec68d6 100644
--- a/website/bugs/use_getopts_instead_of_getopt.mdwn
+++ b/website/bugs/use_getopts_instead_of_getopt.mdwn
@@ -8,3 +8,12 @@ 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.