From 31319d35e6c5134a84bfea7d5d3b9c89339da0b6 Mon Sep 17 00:00:00 2001 From: E5ten Date: Wed, 4 Dec 2019 22:06:40 -0500 Subject: Fix getopt optstring Move longopts after their corresponding shortopts instead of before --- toys/pending/getopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/pending/getopt.c') diff --git a/toys/pending/getopt.c b/toys/pending/getopt.c index 7780cb6e..88307153 100644 --- a/toys/pending/getopt.c +++ b/toys/pending/getopt.c @@ -2,7 +2,7 @@ * * Copyright 2019 The Android Open Source Project -USE_GETOPT(NEWTOY(getopt, "^(alternative)a(name)n:(options)o:(long)(longoptions)l*Tu", TOYFLAG_USR|TOYFLAG_BIN)) +USE_GETOPT(NEWTOY(getopt, "^a(alternative)n:(name)o:(options)l*(long)(longoptions)Tu", TOYFLAG_USR|TOYFLAG_BIN)) config GETOPT bool "getopt" -- cgit v1.2.3