Lines Matching refs:help

104 static int help(int, char **);
119 const char *help; /* help string (NULL for no help) */
284 const char *help; /* Help information (0 ==> no help) */
323 { "help", NULL, 0, 0, (int (*)(char *, ...))send_help, 0, 0 },
345 printf("'send ?' for help\n");
358 printf("Unknown send argument '%s'\n'send ?' for help.\n",
362 printf("Ambiguous send argument '%s'\n'send ?' for help.\n",
368 "Need %d argument%s to 'send %s' command. 'send %s ?' for help.\n",
383 printf("'send ?' for help\n");
391 printf("buffer, if this might help.)\n");
454 if (isprefix(name, "help") || isprefix(name, "?")) {
476 fprintf(stderr,"'%s': ambiguous argument ('send %s ?' for help).\n",
491 fprintf(stderr, "'%s': unknown argument ('send %s ?' for help).\n",
495 fprintf(stderr, "'%s': bad value ('send %s ?' for help).\n",
513 if (s->help)
514 printf("%-15s %s\n", s->name, s->help);
656 const char *help; /* help message */
774 { "help",
788 if (c->help) {
789 if (*c->help)
790 printf("%-15s toggle %s\n", c->name, c->help);
796 printf("%-15s %s\n", "?", "display help information");
806 if (c->help) {
807 if (*c->help)
809 c->help);
828 "Need an argument to 'toggle' command. 'toggle ?' for help.\n");
837 fprintf(stderr, "'%s': ambiguous argument ('toggle ?' for help).\n",
841 fprintf(stderr, "'%s': unknown argument ('toggle ?' for help).\n",
871 const char *help; /* help information */
934 printf("Format is 'set Name Value'\n'set ?' for help.\n");
937 if ((argc == 2) && (isprefix(argv[1], "?") || isprefix(argv[1], "help"))) {
939 printf("%-15s %s\n", ct->name, ct->help);
942 printf("%-15s %s\n", "?", "display help information");
950 fprintf(stderr, "'%s': unknown argument ('set ?' for help).\n",
954 fprintf(stderr, "'%s': ambiguous argument ('set ?' for help).\n",
964 printf("Format is 'set togglename [on|off]'\n'set ?' for help.\n");
975 printf("Format is 'set Name Value'\n'set ?' for help.\n");
978 fprintf(stderr, "'%s': ambiguous argument ('set ?' for help).\n",
1006 "Need an argument to 'unset' command. 'unset ?' for help.\n");
1009 if (isprefix(argv[1], "?") || isprefix(argv[1], "help")) {
1011 printf("%-15s %s\n", ct->name, ct->help);
1014 printf("%-15s %s\n", "?", "display help information");
1026 fprintf(stderr, "'%s': unknown argument ('unset ?' for help).\n",
1030 fprintf(stderr, "'%s': ambiguous argument ('unset ?' for help).\n",
1044 fprintf(stderr, "'%s': ambiguous argument ('unset ?' for help).\n",
1110 printf("'mode ?' for help.\n");
1136 const char *help; /* help string */
1165 { "help", 0, (int (*)(int))modehelp, 0, 0 },
1170 { "?", "Print help information", (int (*)(int))modehelp, 0, 0 },
1182 if (mt->help) {
1183 if (*mt->help)
1184 printf("%-15s %s\n", mt->name, mt->help);
1202 printf("'mode ?' for help.\n");
1204 fprintf(stderr, "Unknown mode '%s' ('mode ?' for help).\n", argv[1]);
1206 fprintf(stderr, "Ambiguous mode '%s' ('mode ?' for help).\n", argv[1]);
1209 printf("'mode ?' for help.\n");
1448 const char *help;
1462 { "help", NULL, (void (*)(int))slc_help, 0 },
1463 { "?", "Print help information", (void (*)(int))slc_help, 0 },
1473 if (c->help) {
1474 if (*c->help)
1475 printf("%-15s %s\n", c->name, c->help);
1496 "Need an argument to 'slc' command. 'slc ?' for help.\n");
1501 fprintf(stderr, "'%s': unknown argument ('slc ?' for help).\n",
1506 fprintf(stderr, "'%s': ambiguous argument ('slc ?' for help).\n",
1522 const char *help;
1557 { "help", NULL, (void (*)(unsigned char *, unsigned char *))env_help, 0 },
1558 { "?", "Print help information", (void (*)(unsigned char *, unsigned char *))env_help, 0 },
1568 if (c->help) {
1569 if (*c->help)
1570 printf("%-15s %s\n", c->name, c->help);
1591 "Need an argument to 'environ' command. 'environ ?' for help.\n");
1596 fprintf(stderr, "'%s': unknown argument ('environ ?' for help).\n",
1601 fprintf(stderr, "'%s': ambiguous argument ('environ ?' for help).\n",
1607 "Need %s%d argument%s to 'environ %s' command. 'environ ?' for help.\n",
1855 const char *help;
1874 { "help", NULL, (int (*)(char *))auth_help, 0 },
1875 { "?", "Print help information", (int (*)(char *))auth_help, 0 },
1885 if (c->help) {
1886 if (*c->help)
1887 printf("%-15s %s\n", c->name, c->help);
1902 "Need an argument to 'auth' command. 'auth ?' for help.\n");
1909 fprintf(stderr, "'%s': unknown argument ('auth ?' for help).\n",
1914 fprintf(stderr, "'%s': ambiguous argument ('auth ?' for help).\n",
1920 "Need %s%d argument%s to 'auth %s' command. 'auth ?' for help.\n",
1936 const char *help;
1979 { "help", NULL, (int (*)(char *, char *))EncryptHelp, 0, 0, 0 },
1980 { "?", "Print help information", (int (*)(char *, char *))EncryptHelp, 0, 0, 0 },
1990 if (c->help) {
1991 if (*c->help)
1992 printf("%-15s %s\n", c->name, c->help);
2007 "Need an argument to 'encrypt' command. 'encrypt ?' for help.\n");
2014 fprintf(stderr, "'%s': unknown argument ('encrypt ?' for help).\n",
2019 fprintf(stderr, "'%s': ambiguous argument ('encrypt ?' for help).\n",
2033 fprintf(stderr, "to 'encrypt %s' command. 'encrypt ?' for help.\n",
2038 if (!(argc && (isprefix(argv[2], "help") || isprefix(argv[2], "?")))) {
2207 if (strcmp(*argv, "help") == 0 || isprefix(*argv, "?"))
2523 helphelp[] = "print help information",
2567 { "?", helphelp, help, 0 },
2578 { "help", 0, help, 0 },
2688 help(int argc, char *argv[])
2695 if (c->help) {
2697 c->help);
2706 printf("?Ambiguous help command %s\n", arg);
2708 printf("?Invalid help command %s\n", arg);
2710 printf("%s\n", c->help);