|
gattrib
|
Functions to parse the command line. More...
#include <config.h>#include <stdio.h>#include <libgeda/libgeda.h>#include "../include/struct.h"#include "../include/prototype.h"#include "../include/globals.h"
Go to the source code of this file.
Defines | |
| #define | OPTIONS "qvh" |
| Command line option string for getopt. | |
Functions | |
| void | usage (char *cmd) |
| Print usage message. | |
| int | parse_commandline (int argc, char *argv[]) |
| Parse command line switches. | |
Variables | |
| char * | optarg |
| int | optind |
Functions to parse the command line and to provide usage information.
Definition in file parsecmd.c.
| #define OPTIONS "qvh" |
Command line option string for getopt. Defines "q" for quiet, "v" for verbose and "h" for help.
Definition at line 48 of file parsecmd.c.
| void usage | ( | char * | cmd | ) |
Prints gattrib usage information to stdout.
| cmd | Unused parameter. |
Definition at line 77 of file parsecmd.c.
| int parse_commandline | ( | int | argc, |
| char * | argv[] | ||
| ) |
Parse command line switches at startup. There are only 3 command line switches:
| argc | Number of command line arguments |
| argv | Command line arguments (array of strings) |
Definition at line 119 of file parsecmd.c.

| char* optarg |
| int optind |