1 /* $FreeBSD: src/usr.bin/getopt/getopt.c,v 1.4.2.2 2001/07/30 10:16:38 dd Exp $ */
2 /* $DragonFly: src/usr.bin/getopt/getopt.c,v 1.2 2003/06/17 04:29:27 dillon Exp $ */
15 optind = 2; /* Past the program name and the option letters. */
16 while ((c = getopt(argc, argv, argv[1])) != -1)
19 status = 1; /* getopt routine gave message */
23 printf(" -%c %s", c, optarg);
29 for (; optind < argc; optind++)
30 printf(" %s", argv[optind]);