[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (b16a6b9945ed53282bf5e87b741b9685417a5e3e)
The branch, master has been updated
via b16a6b9945ed53282bf5e87b741b9685417a5e3e (commit)
from b370258ec3fdf2edad8571ac34ae8c424b59dd8d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
=========
Summary
=========
src/main.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
=================
Commit Messages
=================
commit b16a6b9945ed53282bf5e87b741b9685417a5e3e
Author: Andrew Poelstra <asp11@xxxxxx>
Commit: Andrew Poelstra <asp11@xxxxxx>
Add --help and -? to options that will dump usage() without loading GUI
Closes-bug: lp-826931
:100644 100644 5dc761d... 2f4322f... M src/main.c
=========
Changes
=========
commit b16a6b9945ed53282bf5e87b741b9685417a5e3e
Author: Andrew Poelstra <asp11@xxxxxx>
Commit: Andrew Poelstra <asp11@xxxxxx>
Add --help and -? to options that will dump usage() without loading GUI
Closes-bug: lp-826931
diff --git a/src/main.c b/src/main.c
index 5dc761d..2f4322f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -955,7 +955,10 @@ main (int argc, char *argv[])
Progname = program_basename;
/* Print usage or version if requested. Then exit. */
- if (argc > 1 && strcmp (argv[1], "-h") == 0)
+ if (argc > 1 &&
+ (strcmp (argv[1], "-h") == 0 ||
+ strcmp (argv[1], "-?") == 0 ||
+ strcmp (argv[1], "--help") == 0))
usage ();
if (argc > 1 && strcmp (argv[1], "-V") == 0)
print_version ();
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs