Changeset 09f0ee in git for Singular/tesths.cc


Ignore:
Timestamp:
Aug 4, 1999, 5:38:27 PM (25 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
c32232aa1a81fe568b2e6ee5bca289571e27ff70
Parents:
019f80f3af1dbf6c4b2f012d1f608452a56c6339
Message:
* help system improvements


git-svn-id: file:///usr/local/Singular/svn/trunk@3402 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/tesths.cc

    r019f80 r09f0ee  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: tesths.cc,v 1.65 1999-08-03 17:28:11 obachman Exp $ */
     4/* $Id: tesths.cc,v 1.66 1999-08-04 15:38:27 obachman Exp $ */
    55
    66/*
     
    8080#endif
    8181  {LON_BROWSER,           1,  0,  LONG_OPTION_RETURN},
    82   {LON_EMACS,             0,  0,  LONG_OPTION_RETURN},
    8382  {LON_NO_STDLIB,         0,  0,  LONG_OPTION_RETURN},
    8483  {LON_NO_RC,             0,  0,  LONG_OPTION_RETURN},
     
    9291  {LON_TICKS_PER_SEC,     1,  0,  LONG_OPTION_RETURN},
    9392// undocumented options
     93  {LON_EMACS,             0,  0,  LONG_OPTION_RETURN},
    9494#ifdef HAVE_MPSR
    9595  {LON_MP_TRANSP,         1,  0,  LONG_OPTION_RETURN},
     
    105105{
    106106  const char*   name;    // as in option
     107
    107108  const char*   arg_name;// name of argument, if has_arg > 0
    108109  const char*   help;    // (short) help string
     
    112113
    113114// mention only documented options here
     115// or let help string start with // then option is like undocumented
    114116static struct sing_option sing_longopts[] =
    115117{
     
    118120#endif
    119121  {LON_BROWSER,     "BROWSER",  "Display help in BROWSER ([x,tk]info, netscape)",       ""},
    120   {LON_EMACS,       0,          "Support singular-emacs mode",                          0},
    121122  {LON_HELP,        0,          "Print help message and exit",                          0},
    122123  {LON_QUIET,       0,          "Do not print start-up banner and library load messages", 0},
     
    141142#endif
    142143  {LON_TICKS_PER_SEC, "TICKS",    "Sets unit of timer to TICKS per second",             "1"},
     144  // option whose help should not clutter up the normal help stuff
     145  {LON_EMACS,       0,          "// Support singular-emacs mode",                          0},
    143146  { 0, 0, 0, 0 }
    144147};
     
    188191  {
    189192    sopt = mainGetSingOption(longopts[i].name);
    190     if (sopt != NULL)
     193    if (sopt != NULL && sopt->help != NULL
     194#ifdef NDEBUG
     195        && *(sopt->help) != '/'
     196#endif 
     197        )
    191198    {
    192199      if (longopts[i].has_arg > 0)
Note: See TracChangeset for help on using the changeset viewer.