X-Git-Url: https://git.distorted.org.uk/~mdw/cfd/blobdiff_plain/b91e23910ae2f433757880fa1c7e7b4a66c586e6..16454c3aa0179bc494885e7b9ce18d5722be4d32:/mdwopt.c diff --git a/mdwopt.c b/mdwopt.c index 37d6581..33f41a7 100644 --- a/mdwopt.c +++ b/mdwopt.c @@ -1,10 +1,10 @@ /* -*-c-*- * - * $Id: mdwopt.c,v 1.1 1999/05/05 19:23:47 mdw Exp $ + * $Id: mdwopt.c,v 1.4 1999/05/15 10:25:38 mdw Exp $ * * Options parsing, similar to GNU @getopt_long@ * - * (c) 1996 Mark Wooding + * (c) 1996 Straylight/Edgeware */ /*----- Licensing notice --------------------------------------------------* @@ -22,15 +22,25 @@ * GNU Library General Public License for more details. * * You should have received a copy of the GNU Library General Public - * License along with `mdwopt'; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * License along with `mdwopt'; if not, write to the Free + * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. */ /*----- Revision history --------------------------------------------------* * * $Log: mdwopt.c,v $ - * Revision 1.1 1999/05/05 19:23:47 mdw - * Initial revision + * Revision 1.4 1999/05/15 10:25:38 mdw + * Fix copyright information. + * + * Revision 1.3 1999/05/14 18:51:42 mdw + * Reformat the LGPL notice slightly. + * + * Revision 1.2 1999/05/13 22:57:23 mdw + * Change `-ise' to `-ize' throughout. + * + * Revision 1.1.1.1 1999/05/05 19:23:47 mdw + * New import. The old CVS repository was lost in a disk disaster. * * --- Previous lives --- * @@ -253,7 +263,7 @@ static const char *mo__findOpt(int o, const char *shortopt, * usually done by using a `%|+|%' instead of a `%|-|%' to * introduce the option. * - * Long options, as popularised by the GNU utilities, are given + * Long options, as popularized by the GNU utilities, are given * long-ish memorable names, preceded by a double-dash `%|--|%'. * Since their names are more than a single character, long * options can't be combined in the same way as short options. @@ -652,7 +662,7 @@ int mdwopt(int argc, char *const *argv, botched: if (match == -1) { /* If we couldn't find a match */ if (data->err) { - fprintf(stderr, "%s: unrecognised option `%s%s'\n", + fprintf(stderr, "%s: unrecognized option `%s%s'\n", data->prog, prefix, p); }