Help goes to stdout not stderr
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12676 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
06221dacae
commit
1756036825
1 changed files with 2 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ char cvsroot_octave_cxx[] = "$Id$";
|
||||||
|
|
||||||
#include "swigmod.h"
|
#include "swigmod.h"
|
||||||
|
|
||||||
static bool global_load = true;
|
static bool global_load = true;
|
||||||
static String *global_name = 0;
|
static String *global_name = 0;
|
||||||
static String *op_prefix = 0;
|
static String *op_prefix = 0;
|
||||||
|
|
||||||
|
|
@ -71,7 +71,7 @@ public:
|
||||||
for (int i = 1; i < argc; i++) {
|
for (int i = 1; i < argc; i++) {
|
||||||
if (argv[i]) {
|
if (argv[i]) {
|
||||||
if (strcmp(argv[i], "-help") == 0) {
|
if (strcmp(argv[i], "-help") == 0) {
|
||||||
fputs(usage, stderr);
|
fputs(usage, stdout);
|
||||||
} else if (strcmp(argv[i], "-global") == 0) {
|
} else if (strcmp(argv[i], "-global") == 0) {
|
||||||
global_load = true;
|
global_load = true;
|
||||||
Swig_mark_arg(i);
|
Swig_mark_arg(i);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue