MCPcopy Create free account
hub / github.com/Singular/Singular / feOptHelp

Function feOptHelp

Singular/feOpt.cc:379–428  ·  view source on GitHub ↗

Prints help message

Source from the content-addressed store, hash-verified

377
378// Prints help message
379void feOptHelp(const char* name)
380{
381 int i = 0;
382 char tmp[60];
383#if defined(ESINGULAR)
384 printf("ESingular starts up Singular within emacs;\n");
385#elif defined(TSINGULAR)
386 printf("TSingular starts up Singular within a terminal window;\n");
387#endif
388 printf("Singular is a Computer Algebra System (CAS) for Polynomial Computations.\n");
389 printf("Usage: %s [options] [file1 [file2 ...]]\n", name);
390 printf("Options:\n");
391
392 while (feOptSpec[i].name != 0)
393 {
394 if (feOptSpec[i].help != NULL
395#ifdef SING_NDEBUG
396 && *(feOptSpec[i].help) != '/'
397#endif
398 )
399 {
400 if (feOptSpec[i].has_arg > 0)
401 {
402 if (feOptSpec[i].has_arg > 1)
403 snprintf(tmp,60, "%s[=%s]", feOptSpec[i].name, feOptSpec[i].arg_name);
404 else
405 snprintf(tmp,60, "%s=%s", feOptSpec[i].name, feOptSpec[i].arg_name);
406
407 printf(" %c%c --%-20s %s\n",
408 (feOptSpec[i].val != LONG_OPTION_RETURN ? '-' : ' '),
409 (feOptSpec[i].val != LONG_OPTION_RETURN ? feOptSpec[i].val : ' '),
410 tmp,
411 feOptSpec[i].help);
412 }
413 else
414 {
415 printf(" %c%c --%-20s %s\n",
416 (feOptSpec[i].val != LONG_OPTION_RETURN ? '-' : ' '),
417 (feOptSpec[i].val != LONG_OPTION_RETURN ? feOptSpec[i].val : ' '),
418 feOptSpec[i].name,
419 feOptSpec[i].help);
420 }
421 }
422 i++;
423 }
424
425 printf("\nFor more information, type `help;' from within Singular or visit\n");
426 printf("https://www.singular.uni-kl.de or consult the\n");
427 printf("Singular manual (available as on-line info or html manual).\n");
428}
429
430void feOptDumpVersionTuple(void)
431{

Callers 2

feOptActionFunction · 0.85
emacs.ccFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected