1 /* gEDA - GPL Electronic Design Automation
2 * gschem - gEDA Schematic Capture
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., 59 Temple Place, Suite 330, Boston, MA 02111 USA
29 #ifdef HAVE_LIBDMALLOC
33 #define OPTIONS "hqvr:s:o:pt"
35 #ifndef OPTARG_IN_UNISTD
40 /*! \todo Finish function documentation!!!
42 * \par Function Description
47 printf(_("Usage: %s [OPTIONS] schematic_filename1 ... schematic_filenameN\n"
49 " -v Verbose mode on\n"
50 " -r filename Rc filename\n"
51 " -s filename Script (guile) filename\n"
52 " -o filename Output filename (for printing)\n"
53 " -p Automatically place the window\n"
54 " -t Print stroke information\n"
55 " -h Help; this message\n"
60 /*! \todo Finish function documentation!!!
62 * \par Function Description
65 int parse_commandline(int argc
, char *argv
[])
69 while ((ch
= getopt (argc
, argv
, OPTIONS
)) != -1) {
76 stroke_info_mode
= TRUE
;
84 rc_filename
= g_strdup (optarg
);
88 script_filename
= g_strdup (optarg
);
92 output_filename
= g_strdup (optarg
);
96 auto_place_mode
= TRUE
;
111 verbose_mode
= FALSE
;