version 1.26, 2009/10/14 20:52:28 |
version 1.27, 2009/10/26 21:42:04 |
|
|
cmd_parse(int argc, char **argv, char **cause) |
cmd_parse(int argc, char **argv, char **cause) |
{ |
{ |
const struct cmd_entry **entryp, *entry; |
const struct cmd_entry **entryp, *entry; |
struct cmd *cmd; |
struct cmd *cmd; |
char s[BUFSIZ]; |
char s[BUFSIZ]; |
int opt, ambiguous = 0; |
int opt, ambiguous = 0; |
|
|
|
|
|
|
/* Get the current session. */ |
/* Get the current session. */ |
if ((s = cmd_current_session(ctx)) == NULL) { |
if ((s = cmd_current_session(ctx)) == NULL) { |
ctx->error(ctx, "can't establish current session"); |
ctx->error(ctx, "can't establish current session"); |
return (NULL); |
return (NULL); |
} |
} |
if (sp != NULL) |
if (sp != NULL) |