From 7248752b882c6f9bdc1501e9e55e0ffcbe04fd3b Mon Sep 17 00:00:00 2001 From: Dmytro Konstantinov Date: Sat, 14 Dec 2024 09:19:15 +0000 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 835679b..fae31da 100644 --- a/README.md +++ b/README.md @@ -190,9 +190,9 @@ done Identical to `getopts`, `getopts_long` will parse options and their possible arguments. It will stop parsing on the first non-option argument (a string that doesn't begin with a hyphen (`-`) that isn't an argument for any option in front of it). It will also stop parsing when it sees the `--` (double-hyphen) as a stand-alone argument. -> IMPORTANT: IMPORTANT: There’s only one exception to the rule that says getopts_long behaves like getopts: when handling `-` within short options! +> ⚠️ **IMPORTANT** > -> To support long options, getopts_long provides its own implementation for `-` option, which means the user can no longer define `-` as part of the short option OPTSPEC. +> To support long options and enforce identical behaviour between getopts and getopts_long when handling hyphens, getopts_long provides its own implementation for `-` option. This means that the user can no longer include a hyphen (`-`) within short option OPTSPEC. ### Internal variables