Consistent use of target language version of options

If a version number is supported by the target language prefer to show it in the -help.
For example, -perl5 instead of -perl.
This commit is contained in:
William S Fulton 2019-02-05 19:18:46 +00:00
commit df86ec5af6
7 changed files with 15 additions and 15 deletions

View file

@ -16,7 +16,7 @@
#include <ctype.h>
static const char *usage = "\
Perl5 Options (available with -perl5)\n\
Perl 5 Options (available with -perl5)\n\
-compat - Compatibility mode\n\
-const - Wrap constants as constants and not variables (implies -proxy)\n\
-nopm - Do not generate the .pm file\n\

View file

@ -43,7 +43,7 @@
#include <errno.h>
static const char *usage = "\
PHP Options (available with -php7)\n\
PHP 7 Options (available with -php7)\n\
-noproxy - Don't generate proxy classes.\n\
-prefix <prefix> - Prepend <prefix> to all class names in PHP wrappers\n\
\n";

View file

@ -66,20 +66,20 @@ static TargetLanguageModule modules[] = {
{"-mzscheme", swig_mzscheme, "Mzscheme", Supported},
{"-ocaml", swig_ocaml, "Ocaml", Supported},
{"-octave", swig_octave, "Octave", Supported},
{"-perl", swig_perl5, "Perl", Supported},
{"-perl5", swig_perl5, NULL, Supported},
{"-perl", swig_perl5, NULL, Supported},
{"-perl5", swig_perl5, "Perl 5", Supported},
{"-php", swig_php, NULL, Supported},
{"-php4", NULL, "PHP4", Disabled},
{"-php5", NULL, "PHP5", Disabled},
{"-php7", swig_php, "PHP7", Supported},
{"-php4", NULL, "PHP 4", Disabled},
{"-php5", NULL, "PHP 5", Disabled},
{"-php7", swig_php, "PHP 7", Supported},
{"-pike", NULL, "Pike", Disabled},
{"-python", swig_python, "Python", Supported},
{"-r", swig_r, "R (aka GNU S)", Supported},
{"-ruby", swig_ruby, "Ruby", Supported},
{"-scilab", swig_scilab, "Scilab", Supported},
{"-sexp", NULL, "Lisp S-Expressions", Disabled},
{"-tcl", swig_tcl, "Tcl", Supported},
{"-tcl8", swig_tcl, NULL, Supported},
{"-tcl", swig_tcl, NULL, Supported},
{"-tcl8", swig_tcl, "Tcl 8", Supported},
{"-uffi", NULL, "Common Lisp / UFFI", Disabled},
{"-xml", swig_xml, "XML", Supported},
{NULL, NULL, NULL, Disabled}

View file

@ -15,7 +15,7 @@
#include "cparse.h"
static const char *usage = "\
Tcl 8 Options (available with -tcl)\n\
Tcl 8 Options (available with -tcl8)\n\
-itcl - Enable ITcl support\n\
-nosafe - Leave out SafeInit module function.\n\
-prefix <name> - Set a prefix <name> to be prepended to all names\n\