Lines Matching defs:command
52 (void) printf(gettext("usage: sharemgr [-h | <command> [options]]\n"));
61 char *command = NULL;
71 * parse enough of command line to get protocol, if any.
74 command = basename(argv[0]);
75 if (strcmp(command, "share") != 0 && strcmp(command, "unshare") != 0) {
89 if (strcmp(command, "sharemgr") == 0) {
90 command = argv[optind];
102 * now have enough to parse rest of command line
120 rval = run_command(command, argc, argv, protocol, handle);
127 run_command(char *command, int argc, char *argv[], char *proto,
134 * To get here, we know there should be a command due to the
144 * command will be passed down to the shared object that
149 cmdvec = sa_lookup(command, proto);
151 (void) printf(gettext("command %s not found\n"), command);
156 * based on least priviledge and sub-command so pass this in