Lines Matching refs:subcommand

161 getSubcommand(char *arg, subcommand_t **subcommand)  in getSubcommand()  argument
170 *subcommand = sp; in getSubcommand()
188 getOptions(uint_t object, uint_t subcommand) in getOptions() argument
194 (op->subcommandValue == subcommand)) { in getOptions()
257 subUsage(uint_t usageType, subcommand_t *subcommand) in subUsage() argument
264 gettext("Usage"), commandName, subcommand->name); in subUsage()
297 subUsageObject(usageType, subcommand, objp); in subUsage()
315 subUsageObject(uint_t usageType, subcommand_t *subcommand, object_t *objp) in subUsageObject() argument
335 if (opCmd->invOpCmd & subcommand->value) { in subUsageObject()
339 options = getOptions(objp->value, subcommand->value); in subUsageObject()
342 (void) fprintf(stdout, "\t%s %s ", commandName, subcommand->name); in subUsageObject()
363 if (opCmd->optOpCmd & subcommand->value) { in subUsageObject()
366 if (!(opCmd->noOpCmd & subcommand->value)) { in subUsageObject()
379 if (opCmd->multOpCmd & subcommand->value) { in subUsageObject()
382 if (!(opCmd->noOpCmd & subcommand->value)) { in subUsageObject()
385 if (opCmd->optOpCmd & subcommand->value) { in subUsageObject()
434 subcommand_t subcommand; in usage() local
460 subcommand.name = sp->name; in usage()
461 subcommand.value = sp->value; in usage()
465 subUsage(usageType, &subcommand); in usage()
559 subcommand_t *subcommand; in cmdParse() local
677 if (getSubcommand(argv[1], &subcommand) != 0) { in cmdParse()
687 subUsage(GENERAL_USAGE, subcommand); in cmdParse()
707 subUsage(HELP_USAGE, subcommand); in cmdParse()
710 subUsage(GENERAL_USAGE, subcommand); in cmdParse()
727 subUsage(HELP_USAGE, subcommand); in cmdParse()
745 if (opCmd->invOpCmd & subcommand->value) { in cmdParse()
748 subUsage(HELP_USAGE, subcommand); in cmdParse()
797 subcommand, object); in cmdParse()
800 subUsage(GENERAL_USAGE, subcommand); in cmdParse()
834 availOptions = getOptions(object->value, subcommand->value); in cmdParse()
840 subUsageObject(HELP_USAGE, subcommand, object); in cmdParse()
861 subUsageObject(DETAIL_USAGE, subcommand, in cmdParse()
878 subUsageObject(DETAIL_USAGE, subcommand, in cmdParse()
890 subUsageObject(DETAIL_USAGE, subcommand, in cmdParse()
901 (opCmd->reqOpCmd & subcommand->value)) { in cmdParse()
903 commandName, subcommand->name, in cmdParse()
906 subUsageObject(HELP_USAGE, subcommand, object); in cmdParse()
916 (opCmd->noOpCmd & subcommand->value)) { in cmdParse()
918 commandName, subcommand->name, in cmdParse()
920 subUsageObject(HELP_USAGE, subcommand, object); in cmdParse()
929 !(opCmd->multOpCmd & subcommand->value)) { in cmdParse()
931 commandName, subcommand->name, object->name, in cmdParse()
933 subUsageObject(HELP_USAGE, subcommand, object); in cmdParse()
942 return (subcommand->handler(argc - operInd, &argv[operInd], in cmdParse()