Move the handling of '--' as argument into getopt_internal. Add a parameter
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Mon, 10 Jan 2005 15:38:16 +0000 (15:38 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Mon, 10 Jan 2005 15:38:16 +0000 (15:38 +0000)
commit9e4b0859de47a8d663e8fc574c22f32107281cd7
tree2ad1a5691640dd5b83a53110f6ee7924718934a3
parentca92595ed088a651b740764b7bad85126204ed98
Move the handling of '--' as argument into getopt_internal. Add a parameter
to getopt_internal and getopt_internal_short to activate support for long
options. Disable the special 'W' handling for getopt(). Correctly handle
long option like arguments ('--l') as arguments '-' and 'l'.
lib/libc/stdlib/getopt_long.c