Skip to content

Others: rephrase getopt #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/others.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ Then read through this list of influences and/or alternatives!

* Cons:

* Its use is `discouraged <http://bash.cumulonim.biz/BashFAQ(2f)035.html#getopts>`_ --- it seems to have some issues, you still need to deal with positional arguments by other means.
* The legacy version cannot handle whitespaces and metacharacters at all. It's also non-standard, so there's no guarantee of it existing.

* ``getopts``: ``bash`` builtin for parsing command-line.

* Pros:

* Being included with ``bash``, it behaves the same on all platforms.
* Being included with POSIX ``sh``, it behaves the same on all platforms.

* Cons:

Expand Down