Skip to content

Commit bcabbcb

Browse files
committed
dbclient: handle -- per IEEE Std 1003.1 XBD 12.2
1 parent 1442f00 commit bcabbcb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/cli-runopts.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,11 @@ void cli_getopts(int argc, char ** argv) {
220220
break;
221221
}
222222

223+
if (argv[i][1] == '-' && argv[i][2] == '\0') {
224+
++i;
225+
break;
226+
}
227+
223228
/* Begins with '-' */
224229
opt = OPT_OTHER;
225230
for (j = 1; (c = argv[i][j]) != '\0' && !next && opt == OPT_OTHER; j++) {

0 commit comments

Comments
 (0)