Lines Matching defs:help
56 char *help; /* help string (NULL for no help) */
194 char *help; /* Help information (0 ==> no help) */
233 { "help", 0, 0, 0, send_help, 0, 0 },
255 printf("'send ?' for help\r\n");
268 printf("Unknown send argument '%s'\r\n'send ?' for help.\r\n",
272 printf("Ambiguous send argument '%s'\r\n'send ?' for help.\r\n",
278 "Need %d argument%s to 'send %s' command. 'send %s ?' for help.\r\n",
293 printf("'send ?' for help\r\n");
301 printf("buffer, if this might help.)\r\n");
365 if (isprefix(name, "help") || isprefix(name, "?")) {
387 fprintf(stderr,"'%s': ambiguous argument ('send %s ?' for help).\r\n",
396 fprintf(stderr, "'%s': %s ('send %s ?' for help).\r\n",
414 if (s->help)
415 printf("%-15s %s\r\n", s->name, s->help);
541 char *help; /* help message */
623 { "help",
635 if (c->help) {
636 if (*c->help)
637 printf("%-15s toggle %s\r\n", c->name, c->help);
643 printf("%-15s %s\r\n", "?", "display help information");
653 if (c->help) {
654 if (*c->help)
656 c->help);
675 "Need an argument to 'toggle' command. 'toggle ?' for help.\r\n");
684 fprintf(stderr, "'%s': ambiguous argument ('toggle ?' for help).\r\n",
688 fprintf(stderr, "'%s': unknown argument ('toggle ?' for help).\r\n",
693 printf("'send ?' for help\r\n");
720 char *help; /* help information */
781 printf("Format is 'set Name Value'\r\n'set ?' for help.\r\n");
784 if ((argc == 2) && (isprefix(argv[1], "?") || isprefix(argv[1], "help"))) {
786 printf("%-15s %s\r\n", ct->name, ct->help);
789 printf("%-15s %s\r\n", "?", "display help information");
797 fprintf(stderr, "'%s': unknown argument ('set ?' for help).\r\n",
801 fprintf(stderr, "'%s': ambiguous argument ('set ?' for help).\r\n",
806 printf("'send ?' for help\r\n");
816 printf("Format is 'set togglename [on|off]'\r\n'set ?' for help.\r\n");
827 printf("Format is 'set Name Value'\r\n'set ?' for help.\r\n");
830 fprintf(stderr, "'%s': ambiguous argument ('set ?' for help).\r\n",
858 "Need an argument to 'unset' command. 'unset ?' for help.\r\n");
861 if (isprefix(argv[1], "?") || isprefix(argv[1], "help")) {
863 printf("%-15s %s\r\n", ct->name, ct->help);
866 printf("%-15s %s\r\n", "?", "display help information");
878 fprintf(stderr, "'%s': unknown argument ('unset ?' for help).\r\n",
882 fprintf(stderr, "'%s': ambiguous argument ('unset ?' for help).\r\n",
896 fprintf(stderr, "'%s': ambiguous argument ('unset ?' for help).\r\n",
959 printf("'mode ?' for help.\r\n");
985 char *help; /* help string */
1016 { "help", 0, modehelp, 0 },
1021 { "?", "Print help information", modehelp, 0 },
1032 if (mt->help) {
1033 if (*mt->help)
1034 printf("%-15s %s\r\n", mt->name, mt->help);
1052 printf("'mode ?' for help.\r\n");
1054 fprintf(stderr, "Unknown mode '%s' ('mode ?' for help).\r\n", argv[1]);
1056 fprintf(stderr, "Ambiguous mode '%s' ('mode ?' for help).\r\n", argv[1]);
1059 printf("'mode ?' for help.\r\n");
1246 char *help;
1260 { "help", 0, slc_help, 0 },
1261 { "?", "Print help information", slc_help, 0 },
1271 if (c->help) {
1272 if (*c->help)
1273 printf("%-15s %s\r\n", c->name, c->help);
1294 "Need an argument to 'slc' command. 'slc ?' for help.\r\n");
1299 fprintf(stderr, "'%s': unknown argument ('slc ?' for help).\r\n",
1304 fprintf(stderr, "'%s': ambiguous argument ('slc ?' for help).\r\n",
1320 char *help;
1345 { "help", 0, env_help, 0 },
1346 { "?", "Print help information", env_help, 0 },
1356 if (c->help) {
1357 if (*c->help)
1358 printf("%-15s %s\r\n", c->name, c->help);
1379 "Need an argument to 'environ' command. 'environ ?' for help.\r\n");
1384 fprintf(stderr, "'%s': unknown argument ('environ ?' for help).\r\n",
1389 fprintf(stderr, "'%s': ambiguous argument ('environ ?' for help).\r\n",
1395 "Need %s%d argument%s to 'environ %s' command. 'environ ?' for help.\r\n",
1766 if (strcmp(*argv, "help") == 0 || isprefix(*argv, "?"))
1937 helphelp[] = "print help information",
1948 static int help(int, char**);
1966 { "?", helphelp, help, 0 },
1974 { "help", 0, help, 0 },
2063 help(int argc, char *argv[])
2070 if (c->help) {
2072 c->help);
2081 printf("?Ambiguous help command %s\r\n", arg);
2083 printf("?Invalid help command %s\r\n", arg);
2085 printf("%s\r\n", c->help);