1 /* gEDA - GPL Electronic Design Automation
2 * gsymcheck - gEDA Symbol Check
3 * Copyright (C) 1998-2008 Ales Hvezda
4 * Copyright (C) 1998-2008 gEDA Contributors (see ChangeLog for details)
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 #include <libgeda/libgeda.h>
30 #include "../include/struct.h"
31 #include "../include/globals.h"
32 #include "../include/prototype.h"
36 #ifndef OPTARG_IN_UNISTD
44 printf("Usage: %s [OPTIONS] filename1 ... filenameN\n", cmd
);
45 printf(" -h Print usage\n");
46 printf(" -q Quiet mode\n");
47 printf(" -v Verbose mode (cumulative: errors, warnings, info)\n");
48 printf(" Use this to get the actual symbol error messages\n");
49 printf("\nfilename1 ... filenameN are the symbols to check\n");
55 parse_commandline(int argc
, char *argv
[])
59 while ((ch
= getopt (argc
, argv
, OPTIONS
)) != -1) {
72 printf("f arg: %s\n", optarg
);