Lines Matching refs:subcommand

160 getSubcommand(char *arg, subcommand_t **subcommand)  in getSubcommand()  argument
169 *subcommand = sp; in getSubcommand()
187 getOptions(uint_t object, uint_t subcommand) in getOptions() argument
193 (op->subcommandValue == subcommand)) { in getOptions()
256 subUsage(uint_t usageType, subcommand_t *subcommand) in subUsage() argument
263 gettext("Usage"), commandName, subcommand->name); in subUsage()
296 subUsageObject(usageType, subcommand, objp); in subUsage()
313 subUsageObject(uint_t usageType, subcommand_t *subcommand, object_t *objp) in subUsageObject() argument
333 if (opCmd->invOpCmd & subcommand->value) { in subUsageObject()
337 options = getOptions(objp->value, subcommand->value); in subUsageObject()
340 (void) fprintf(stdout, "\t%s %s ", commandName, subcommand->name); in subUsageObject()
361 if (opCmd->optOpCmd & subcommand->value) { in subUsageObject()
364 if (!(opCmd->noOpCmd & subcommand->value)) { in subUsageObject()
377 if (opCmd->multOpCmd & subcommand->value) { in subUsageObject()
380 if (!(opCmd->noOpCmd & subcommand->value)) { in subUsageObject()
383 if (opCmd->optOpCmd & subcommand->value) { in subUsageObject()
431 subcommand_t subcommand; in usage() local
459 subcommand.name = sp->name; in usage()
460 subcommand.value = sp->value; in usage()
464 subUsage(usageType, &subcommand); in usage()
557 subcommand_t *subcommand; in cmdParse() local
674 if (getSubcommand(argv[1], &subcommand) != 0) { in cmdParse()
684 subUsage(GENERAL_USAGE, subcommand); in cmdParse()
703 subUsage(HELP_USAGE, subcommand); in cmdParse()
706 subUsage(GENERAL_USAGE, subcommand); in cmdParse()
723 subUsage(HELP_USAGE, subcommand); in cmdParse()
740 if (opCmd->invOpCmd & subcommand->value) { in cmdParse()
743 subUsage(HELP_USAGE, subcommand); in cmdParse()
792 subcommand, object); in cmdParse()
795 subUsage(GENERAL_USAGE, subcommand); in cmdParse()
828 availOptions = getOptions(object->value, subcommand->value); in cmdParse()
834 subUsageObject(HELP_USAGE, subcommand, object); in cmdParse()
855 subUsageObject(DETAIL_USAGE, subcommand, in cmdParse()
868 subUsageObject(DETAIL_USAGE, subcommand, in cmdParse()
879 subUsageObject(DETAIL_USAGE, subcommand, in cmdParse()
890 (opCmd->reqOpCmd & subcommand->value)) { in cmdParse()
892 commandName, subcommand->name, in cmdParse()
894 subUsageObject(HELP_USAGE, subcommand, object); in cmdParse()
903 (opCmd->noOpCmd & subcommand->value)) { in cmdParse()
905 commandName, subcommand->name, in cmdParse()
907 subUsageObject(HELP_USAGE, subcommand, object); in cmdParse()
916 !(opCmd->multOpCmd & subcommand->value)) { in cmdParse()
918 commandName, subcommand->name, object->name, in cmdParse()
920 subUsageObject(HELP_USAGE, subcommand, object); in cmdParse()
928 *funcRet = subcommand->handler(argc - operInd, &argv[operInd], in cmdParse()