houaq / shflags

Automatically exported from code.google.com/p/shflags
0 stars 0 forks source link

Flags set with '=' result in off-by-one shifting error #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
DEFINE_string str '' 'some string'
FLAGS "$@" || exit; shift ${FLAGS_ARGC}
echo "-- $1 --"

# without '=' the result is correct
$ ./script --str abc 123
-- 123 --

# with '-' the result is incorrect
./script --str=abc 123
--  --

Platform is Ubuntu Dapper 6.06.

Original issue reported on code.google.com by kate.war...@gtempaccount.com on 23 Jan 2009 at 2:49

GoogleCodeExporter commented 9 years ago
Fixed in rev# 111.

Original comment by kate.war...@gtempaccount.com on 30 Mar 2009 at 6:57