X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=website%2Fbugs%2Fuse_getopts_instead_of_getopt.mdwn;h=2ec68d6d4ec874dc8e91da191e2a3fdba20f5782;hb=f728df69bbb04ed21a437832c486590cc5a83684;hp=af4c17a5b322dd54439b51cb42448e3d0eb50058;hpb=b9a98c7942c0f6b045a5bfa7c7ec4e40f1264e2d;p=monkeysphere.git 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.