version 1.31, 2005/05/26 03:07:20 |
version 1.32, 2005/05/29 16:36:54 |
|
|
CVS_CMD_ALLOWSPEC | CVS_CMD_SENDARGS2 | CVS_CMD_SENDDIR |
CVS_CMD_ALLOWSPEC | CVS_CMD_SENDARGS2 | CVS_CMD_SENDDIR |
}; |
}; |
|
|
|
static char *date, *rev; |
static int dflag, Aflag; |
static int dflag, Aflag; |
|
|
static int |
static int |
|
|
int ch; |
int ch; |
|
|
dflag = Aflag = 0; |
dflag = Aflag = 0; |
|
date = NULL; |
|
rev = NULL; |
|
|
while ((ch = getopt(argc, argv, cmd->cmd_opts)) != -1) { |
while ((ch = getopt(argc, argv, cmd->cmd_opts)) != -1) { |
switch (ch) { |
switch (ch) { |
|
|
break; |
break; |
case 'C': |
case 'C': |
case 'D': |
case 'D': |
|
date = optarg; |
|
break; |
case 'd': |
case 'd': |
dflag = 1; |
dflag = 1; |
break; |
break; |
|
|
cmd->file_flags |= CF_RECURSE; |
cmd->file_flags |= CF_RECURSE; |
break; |
break; |
case 'r': |
case 'r': |
|
rev = optarg; |
break; |
break; |
default: |
default: |
return (CVS_EX_USAGE); |
return (CVS_EX_USAGE); |
} |
} |
|
} |
|
|
|
if ((date != NULL) && (rev != NULL)) { |
|
cvs_log(LP_ERR, |
|
"the -D and -r arguments are mutually exclusive"); |
|
return (CVS_EX_USAGE); |
} |
} |
|
|
*arg = optind; |
*arg = optind; |