(handle_non_switch_argument): New function, broken out of decode_switches.
authorRoland McGrath <roland@redhat.com>
Fri, 24 Mar 1995 05:56:41 +0000 (05:56 +0000)
committerRoland McGrath <roland@redhat.com>
Fri, 24 Mar 1995 05:56:41 +0000 (05:56 +0000)
commit1331cca1fa131d066afd0de5f2972061a520f3f0
tree6720d6dc0554df007150824c0aabae051bbbbae1
parentfe05aaf7f250ca7d794fb1c064921e1aa03e9ec1
(handle_non_switch_argument): New function, broken out of decode_switches.
(decode_switches): Set optind to 0 to reinitialize getopt, not to 1.  When
getopt_long returns EOF, break the loop and handle remaining args with a
simple second loop.
main.c