Lines Matching defs:options

46  * MAXOPTIONSTRING is the max length of the options string used in getopt and
48 * providing for options with arguments. e.g. "t:Cs:hglr:"
52 /* standard command options table to support -?, -V */
59 /* standard subcommand options table to support -? */
178 * object - object for which to get options
179 * subcommand - subcommand for which to get options
318 optionProp_t *options;
337 options = getOptions(objp->value, subcommand->value);
345 /* print options if applicable */
346 if (options != NULL) {
347 if (options->required) {
353 if (options->required) {
392 /* print options for subcommand, object */
393 if (options != NULL && options->optionString != NULL) {
395 for (i = 0; i < strlen(options->optionString); i++) {
397 options->optionString[i]))
403 options->optionString[i], longOpt);
405 getOptionArgDesc(options->optionString[i]);
409 if (options->exclusive &&
410 strchr(options->exclusive,
411 options->optionString[i])) {
510 * command subcommand object [<options>] [<operand>]
512 * There are two standard short and long options assumed:
519 * These options are loaded by this function.
568 * where there is no caller defined options
604 * load standard subcommand options to internal long options table
615 * copy caller's long options into internal long options table
749 * getopt(3C) assumes options
763 * Build optionStringAll from long options table
779 * Run getopt for all arguments against all possible options
780 * Store all options/option arguments in an array for retrieval
782 * Once all options are retrieved, check against object
824 * Check validity of given options, if any were given
830 if (cmdOptions[0].optval != 0) { /* options were input */
831 if (availOptions == NULL) { /* no options permitted */
833 commandName, gettext("no options permitted"));
838 /* Check for invalid options */
859 /* Check for exclusive options */
873 } else { /* no options were input */