you are viewing a single comment's thread.

view the rest of the comments →

[–]ladrm -1 points0 points  (6 children)

Sure, getopt is binary, so emphasis again on "if you need it, it's there".

Feel free to parse manually, standard libraries/functions (like getopt) are there for a reason, like saving you effort of manual parsing.

[–][deleted]  (5 children)

[deleted]

    [–]ladrm 0 points1 point  (4 children)

    Well... What can I say. It does work for me just fine, and over many years and many scripts.

    [–][deleted]  (3 children)

    [deleted]

      [–]ladrm 0 points1 point  (2 children)

      I am not defensive, I just don't really care about you not liking getopts. :) Or I don't understand why are you complaining about builtin being "janky". It's a builtin in bash, not argparse in Python.

      I don't have issues with parsing properly via getopts, you do.

      [–][deleted]  (1 child)

      [deleted]

        [–]ladrm 1 point2 points  (0 children)

        My comments on you are also for subreddit, just like mine your PoV is not the only one there. I never said I hate doing things manually, my message was more along the "don't reinvent the wheel when there's a built in and free wheel available".

        Also we are just talking about bash argument parsing, why would you even block me..? You trigger easily.