irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

parseCommandLine.cpp
Go to the documentation of this file.
1 
4 /*
5 
6 This routine parses the command line, converting it into values in the
7 rodsArguments_t structure. This is used by all the RODS C client
8 commands (the R commands), which helps ensure that we use common
9 options throughout the command set. Also see the
10 doc/DesignSpecs/CommandLineOptions document.
11 
12 If you need additional options, please update this routine and the
13 CommandLineOptions document so we can keep it all consistent.
14 */
15 
16 #include "rods.h"
17 #include "parseCommandLine.h"
18 #include "getRodsEnv.h"
19 #include "rodsLog.h"
20 #include "rcMisc.h"
21 #ifdef windows_platform
22 #include "irodsntutil.hpp"
23 #endif
24 
25 
26 /*
27  Input:
28  argc and argv,
29  optString: the option string to use, should be a subset of the
30  full parseCommandLine list, the ones supported by this caller.
31  If null or empty, use the full list.
32  includeLong: if non-0 also check on the long form options, else do not.
33  Output:
34  the rodsArg structure is returned
35  */
36 int
37 parseCmdLineOpt( int argc, char **argv, const char *optString, int includeLong,
38  rodsArguments_t *rodsArgs ) {
39  char fullOpts[] = "aAbc:C:dD:efFghH:ikK:lm:n:N:p:P:qrR:s:S:t:Tu:vVzZxWY:";
40  int VCount = 0;
41 
42  /* Set all flags and pointers to false/null */
43  memset( rodsArgs, 0, sizeof( rodsArguments_t ) );
44 
45  if ( argv != NULL && argv[0] != NULL ) {
46  /* set SP_OPTION to argv[0] so it can be passed to server */
47  char child[MAX_NAME_LEN], parent[MAX_NAME_LEN];
48  *child = '\0';
49  splitPathByKey( argv[0], parent, MAX_NAME_LEN, child, MAX_NAME_LEN, '/' );
50  if ( *child != '\0' ) {
51  mySetenvStr( SP_OPTION, child );
52  }
53  }
54 
55  /* handle the long options first */
56  if ( includeLong ) {
57  for ( int i = 0; i < argc; i++ ) {
58  if ( strcmp( "--link", argv[i] ) == 0 ) {
59  rodsArgs->link = True;
60  argv[i] = "-Z"; /* ignore symlink */
61  }
62 
63  if ( strcmp( "--parallel", argv[i] ) == 0 ) {
64  rodsArgs->parallel = True;
65  argv[i] = "-Z"; /* place holder so the getopt will parse */
66  }
67  if ( strcmp( "--serial", argv[i] ) == 0 ) {
68  rodsArgs->serial = True;
69  argv[i] = "-Z";
70  }
71  if ( strcmp( "--master-icat", argv[i] ) == 0 ) {
72  rodsArgs->masterIcat = True;
73  argv[i] = "-Z";
74  }
75  if ( strcmp( "--silent", argv[i] ) == 0 ) { /* also -W */
76  rodsArgs->silent = True;
77  argv[i] = "-Z";
78  }
79  if ( strcmp( "--test", argv[i] ) == 0 ) {
80  rodsArgs->test = True;
81  argv[i] = "-Z";
82  }
83  if ( strcmp( "--tree", argv[i] ) == 0 ) {
84  rodsArgs->tree = True;
85  argv[i] = "-Z";
86  }
87  if ( strcmp( "--ascii", argv[i] ) == 0 ) {
88  rodsArgs->ascii = True;
89  argv[i] = "-Z";
90  }
91  if ( strcmp( "--ttl", argv[i] ) == 0 ) {
92  rodsArgs->ttl = True;
93  argv[i] = "-Z";
94  if ( i + 2 <= argc ) {
95  if ( *argv[i + 1] == '-' ) {
97  "--ttl option needs a time to live number" );
98  return USER_INPUT_OPTION_ERR;
99  }
100  rodsArgs->ttlValue = atoi( argv[i + 1] );
101  argv[i + 1] = "-Z";
102  }
103  }
104  if ( strcmp( "--verify", argv[i] ) == 0 ) { /* also -x */
105  rodsArgs->verify = True;
106  argv[i] = "-Z";
107  }
108  if ( strcmp( "--version", argv[i] ) == 0 ) { /* also -W */
109  rodsArgs->version = True;
110  argv[i] = "-Z";
111  }
112  if ( strcmp( "--retries", argv[i] ) == 0 ) { /* also -Y */
113  rodsArgs->retries = True;
114  argv[i] = "-Z";
115  if ( i + 2 <= argc ) {
116  if ( *argv[i + 1] == '-' ) {
118  "--retries option needs an iput file" );
119  return USER_INPUT_OPTION_ERR;
120  }
121  rodsArgs->retriesValue = atoi( argv[i + 1] );
122  argv[i + 1] = "-Z";
123  }
124  }
125  if ( strcmp( "--no-page", argv[i] ) == 0 ) {
126  rodsArgs->noPage = True;
127  argv[i] = "-Z";
128  }
129  if ( strcmp( "--repl", argv[i] ) == 0 ) {
130  rodsArgs->regRepl = True;
131  argv[i] = "-Z";
132  }
133  if ( strcmp( "--sql", argv[i] ) == 0 ) {
134  rodsArgs->sql = True;
135  argv[i] = "-Z";
136  }
137  if ( strcmp( "--lfrestart", argv[i] ) == 0 ) {
138  rodsArgs->lfrestart = True;
139  argv[i] = "-Z";
140  if ( i + 2 <= argc ) {
141  if ( *argv[i + 1] == '-' ) {
143  "--lfrestart option needs an iput file" );
144  return USER_INPUT_OPTION_ERR;
145  }
146  rodsArgs->lfrestartFileString = strdup( argv[i + 1] );
147  argv[i + 1] = "-Z";
148  }
149  }
150  if ( strcmp( "--orphan", argv[i] ) == 0 ) {
151  rodsArgs->orphan = True;
152  argv[i] = "-Z";
153  }
154  if ( strcmp( "--purgec", argv[i] ) == 0 ) {
155  rodsArgs->purgeCache = True;
156  argv[i] = "-Z";
157  }
158  if ( strcmp( "--bundle", argv[i] ) == 0 ) {
159  rodsArgs->bundle = True;
160  argv[i] = "-Z";
161  }
162  if ( strcmp( "--empty", argv[i] ) == 0 ) {
163  rodsArgs->empty = True;
164  argv[i] = "-Z";
165  }
166  if ( strcmp( "--age", argv[i] ) == 0 ) { /* also -Y */
167  rodsArgs->age = True;
168  argv[i] = "-Z";
169  if ( argc >= i + 2 ) {
170  if ( *argv[i + 1] == '-' ) {
172  "--age option needs an iput number" );
173  return USER_INPUT_OPTION_ERR;
174  }
175  rodsArgs->agevalue = atoi( argv[i + 1] );
176  argv[i + 1] = "-Z";
177  }
178  }
179  if ( strcmp( "--dryrun", argv[i] ) == 0 ) {
180  rodsArgs->dryrun = True;
181  argv[i] = "-Z";
182  }
183  if ( strcmp( "--rlock", argv[i] ) == 0 ) {
184  rodsArgs->rlock = True;
185  argv[i] = "-Z";
186  }
187  if ( strcmp( "--wlock", argv[i] ) == 0 ) {
188  rodsArgs->wlock = True;
189  argv[i] = "-Z";
190  }
191  if ( strcmp( "--add", argv[i] ) == 0 ) {
192  rodsArgs->add = True;
193  argv[i] = "-Z";
194  }
195  if ( strcmp( "--showFirstLine", argv[i] ) == 0 ) {
196  rodsArgs->showFirstLine = True;
197  argv[i] = "-Z";
198  }
199 
200  if ( strcmp( "--reg", argv[i] ) == 0 ) {
201  rodsArgs->reg = True;
202  argv[i] = "-Z";
203  }
204  if ( strcmp( "--attr", argv[i] ) == 0 ) {
205  rodsArgs->attr = True;
206  argv[i] = "-Z";
207  if ( i + 2 <= argc ) {
208  if ( *argv[i + 1] == '-' ) {
210  "--attr option needs an iput file" );
211  return USER_INPUT_OPTION_ERR;
212  }
213  rodsArgs->attrStr = strdup( argv[i + 1] );
214  argv[i + 1] = "-Z";
215  }
216  }
217  if ( strcmp( "--noattr", argv[i] ) == 0 ) {
218  rodsArgs->noattr = True;
219  argv[i] = "-Z";
220  }
221  if ( strcmp( "--remove", argv[i] ) == 0 ) {
222  rodsArgs->remove = True;
223  argv[i] = "-Z";
224  }
225  if ( strcmp( "--header", argv[i] ) == 0 ) {
226  rodsArgs->header = True;
227  argv[i] = "-Z";
228  }
229  if ( strcmp( "--dim", argv[i] ) == 0 ) {
230  rodsArgs->dim = True;
231  argv[i] = "-Z";
232  }
233  if ( strcmp( "--var", argv[i] ) == 0 ) {
234  rodsArgs->var = True;
235  argv[i] = "-Z";
236  if ( i + 2 <= argc ) {
237  if ( *argv[i + 1] == '-' ) {
239  "--var option needs an iput parameter" );
240  return USER_INPUT_OPTION_ERR;
241  }
242  rodsArgs->varStr = strdup( argv[i + 1] );
243  argv[i + 1] = "-Z";
244  }
245  }
246  if ( strcmp( "--subset", argv[i] ) == 0 ) {
247  rodsArgs->subset = True;
248  argv[i] = "-Z";
249  if ( i + 2 <= argc ) {
250  if ( *argv[i + 1] == '-' ) {
252  "--subset option needs an iput parameter" );
253  return USER_INPUT_OPTION_ERR;
254  }
255  rodsArgs->subsetStr = strdup( argv[i + 1] );
256  argv[i + 1] = "-Z";
257  }
258  }
259  if ( strcmp( "--SUBSET", argv[i] ) == 0 ) {
260  rodsArgs->subsetByVal = True;
261  argv[i] = "-Z";
262  if ( i + 2 <= argc ) {
263  if ( *argv[i + 1] == '-' ) {
265  "--SUBSET option needs an iput parameter" );
266  return USER_INPUT_OPTION_ERR;
267  }
268  rodsArgs->subsetStr = strdup( argv[i + 1] );
269  argv[i + 1] = "-Z";
270  }
271  }
272  if ( strcmp( "--ascitime", argv[i] ) == 0 ) {
273  rodsArgs->ascitime = True;
274  argv[i] = "-Z";
275  }
276  if ( strcmp( "--agginfo", argv[i] ) == 0 ) {
277  rodsArgs->agginfo = True;
278  argv[i] = "-Z";
279  }
280  if ( strcmp( "--new", argv[i] ) == 0 ) {
281  rodsArgs->newFlag = True;
282  argv[i] = "-Z";
283  if ( i + 2 <= argc ) {
284  if ( *argv[i + 1] == '-' ) {
286  "--new option needs an starting time index iput " );
287  return USER_INPUT_OPTION_ERR;
288  }
289  rodsArgs->startTimeInxStr = strdup( argv[i + 1] );
290  argv[i + 1] = "-Z";
291  }
292  }
293 
294  if ( strcmp( "--exclude-from", argv[i] ) == 0 ) {
295  rodsArgs->excludeFile = True;
296  argv[i] = "-Z";
297  if ( i + 2 < argc ) {
298  if ( *argv[i + 1] == '-' ) {
300  "--exclude-from option takes a file argument" );
301  return USER_INPUT_OPTION_ERR;
302  }
303  rodsArgs->excludeFileString = strdup( argv[i + 1] );
304  argv[i + 1] = "-Z";
305  }
306  }
307  }
308  }
309 
310  /* handle the short options */
311  const char *opts = optString && *optString ? optString : fullOpts;
312 
313  int opt;
314  while ( ( opt = getopt( argc, argv, opts ) ) != EOF ) {
315  switch ( opt ) {
316  case 'a':
317  rodsArgs->all = True;
318  break;
319  case 'A':
320  rodsArgs->accessControl = True;
321  break;
322  case 'b':
323  rodsArgs->bulk = True;
324  break;
325  case 'B':
326  rodsArgs->backupMode = True;
327  break;
328  case 'c':
329  rodsArgs->condition = True;
330  rodsArgs->conditionString = optarg;
331  break;
332  case 'C':
333  rodsArgs->collection = True;
334  rodsArgs->collectionString = optarg;
335  break;
336  case 'd':
337  rodsArgs->dataObjects = True;
338  break;
339  case 'D':
340  rodsArgs->dataType = True;
341  rodsArgs->dataTypeString = optarg;
342  break;
343  case 'e':
344  rodsArgs->echo = True;
345  break;
346  case 'f':
347  rodsArgs->force = True;
348  break;
349  case 'F':
350  rodsArgs->file = True;
351  rodsArgs->fileString = optarg;
352  break;
353  case 'g':
354  rodsArgs->global = True;
355  break;
356  // Ticket 1457 - No longer Supporting Resource groups.
357  //case 'G':
358  // rodsArgs->rescGroup=True;
359  // rodsArgs->rescGroupString=optarg;
360  // break;
361  case 'H':
362  rodsArgs->hostAddr = True;
363  rodsArgs->hostAddrString = optarg;
364  break;
365  case 'h':
366  rodsArgs->help = True;
367  break;
368  case 'i':
369  rodsArgs->input = True;
370  break;
371  case 'I':
372  rodsArgs->redirectConn = True; /* connect directly to resc server */
373  break;
374  case 'k':
375  rodsArgs->checksum = True;
376  break;
377  case 'K':
378  rodsArgs->verifyChecksum = True;
379  break;
380  case 'l':
381  rodsArgs->longOption = True;
382  break;
383  case 'L':
384  rodsArgs->longOption = True;
385  rodsArgs->veryLongOption = True;
386  break;
387  case 'm':
388  rodsArgs->mountCollection = True;
389  rodsArgs->mountType = optarg;
390  break;
391  case 'M':
392  rodsArgs->admin = True;
393  break;
394  case 'n':
395  rodsArgs->replNum = True;
396  rodsArgs->replNumValue = optarg;
397  break;
398  case 'N':
399  rodsArgs->number = True;
400  rodsArgs->numberValue = atoi( optarg );
401  break;
402  case 'o':
403  rodsArgs->option = True;
404  rodsArgs->optionString = optarg;
405  break;
406  case 'p':
407  rodsArgs->physicalPath = True;
408  rodsArgs->physicalPathString = optarg;
409  break;
410  case 'P':
411  rodsArgs->logicalPath = True;
412  rodsArgs->logicalPathString = optarg;
413  rodsArgs->progressFlag = True;
414  break;
415  case 'q':
416  rodsArgs->query = True;
417  rodsArgs->queryStr = optarg;
418  break;
419  case 'Q':
420  rodsArgs->rbudp = True;
421  break;
422  case 'r':
423  rodsArgs->recursive = True;
424  break;
425  case 'R':
426  rodsArgs->resource = True;
427  rodsArgs->resourceString = optarg;
428  break;
429  case 's':
430  rodsArgs->sizeFlag = True;
431  if ( optarg != NULL ) {
432  /* irsync uses sizeFlag for sync but has no size value */
433  rodsArgs->size = strtoll( optarg, 0, 0 );
434  }
435  break;
436  case 'S':
437  rodsArgs->srcResc = True;
438  rodsArgs->srcRescString = optarg;
439  break;
440  case 't':
441  rodsArgs->ticket = True;
442  rodsArgs->ticketString = optarg;
443  break;
444  case 'T':
445  rodsArgs->reconnect = True;
446  break;
447  case 'u':
448  rodsArgs->user = True;
449  rodsArgs->userString = optarg;
450  break;
451  case 'U':
452  rodsArgs->unmount = True;
453  break;
454  case 'v':
455  rodsArgs->verbose = True;
456  break;
457  case 'V':
458  VCount++;
459  rodsArgs->verbose = True; /* also set verbose */
460  rodsArgs->veryVerbose = True;
461  if ( VCount <= 1 ) {
463  }
464  else {
465  rodsLogLevel( LOG_DEBUG ); /* multiple V's is for DEBUG level */
466  }
467  break;
468  case 'w':
469  rodsArgs->writeFlag = True;
470  break;
471  case 'z':
472  rodsArgs->zone = True;
473  rodsArgs->zoneName = optarg;
474  break;
475  case 'Z':
476  /* noop; Z is placeholder for the long options */
477  break;
478 
479  /* The following are also -- options */
480  case 'x':
481  rodsArgs->extract = True;
482  break;
483  case 'X':
484  rodsArgs->restart = True;
485  rodsArgs->restartFileString = optarg;
486  break;
487  case 'W':
488  rodsArgs->version = True;
489  break;
490  case 'Y':
491  rodsArgs->retries = True;
492  rodsArgs->retriesValue = atoi( optarg );
493  break;
494  default:
496  "parseCmdLineOpt: Option not supported. opt [%d], optopt [%d], optind [%d], opterr [%d], opts [%s]",
497  opt, optopt, optind, opterr, opts );
498  return USER_INPUT_OPTION_ERR;
499  }
500  }
501  rodsArgs->optind = optind;
502  return 0;
503 }
rodsArguments_t::parallel
int parallel
Definition: parseCommandLine.h:125
rodsArguments_t::restartFileString
char * restartFileString
Definition: parseCommandLine.h:117
rodsLog
void rodsLog(int level, const char *formatStr,...)
Definition: rodsLog.cpp:86
rodsArguments_t::add
int add
Definition: parseCommandLine.h:15
NULL
#define NULL
Definition: rodsDef.h:70
True
#define True
Definition: parseCommandLine.h:11
rodsArguments_t::excludeFileString
char * excludeFileString
Definition: parseCommandLine.h:133
rodsArguments_t::bundle
int bundle
Definition: parseCommandLine.h:79
rodsArguments_t::showFirstLine
int showFirstLine
Definition: parseCommandLine.h:89
rodsArguments_t::sizeFlag
int sizeFlag
Definition: parseCommandLine.h:90
rodsArguments_t::ticketString
char * ticketString
Definition: parseCommandLine.h:99
rodsArguments_t::all
int all
Definition: parseCommandLine.h:18
rodsArguments_t::conditionString
char * conditionString
Definition: parseCommandLine.h:30
rodsArguments_t::optionString
char * optionString
Definition: parseCommandLine.h:76
rodsArguments_t
Definition: parseCommandLine.h:14
rodsArguments_t::attr
int attr
Definition: parseCommandLine.h:24
rodsArguments_t::mountType
char * mountType
Definition: parseCommandLine.h:62
rodsArguments_t::writeFlag
int writeFlag
Definition: parseCommandLine.h:109
rodsArguments_t::orphan
int orphan
Definition: parseCommandLine.h:77
optarg
char * optarg
rodsArguments_t::retriesValue
int retriesValue
Definition: parseCommandLine.h:122
rodsArguments_t::rbudp
int rbudp
Definition: parseCommandLine.h:83
rodsArguments_t::input
int input
Definition: parseCommandLine.h:50
rodsArguments_t::option
int option
Definition: parseCommandLine.h:75
rodsArguments_t::zoneName
char * zoneName
Definition: parseCommandLine.h:111
rodsArguments_t::verbose
int verbose
Definition: parseCommandLine.h:107
rodsArguments_t::srcRescString
char * srcRescString
Definition: parseCommandLine.h:93
mySetenvStr
int mySetenvStr(const char *envname, const char *envval)
Definition: rcMisc.cpp:4011
rodsArguments_t::help
int help
Definition: parseCommandLine.h:47
rodsArguments_t::dataTypeString
char * dataTypeString
Definition: parseCommandLine.h:55
rodsArguments_t::collection
int collection
Definition: parseCommandLine.h:31
rcMisc.h
rodsArguments_t::accessControl
int accessControl
Definition: parseCommandLine.h:19
rodsArguments_t::version
int version
Definition: parseCommandLine.h:120
rodsArguments_t::zone
int zone
Definition: parseCommandLine.h:110
rodsArguments_t::empty
int empty
Definition: parseCommandLine.h:37
rodsArguments_t::attrStr
char * attrStr
Definition: parseCommandLine.h:26
rodsArguments_t::sql
int sql
Definition: parseCommandLine.h:129
rodsArguments_t::rlock
int rlock
Definition: parseCommandLine.h:58
rodsArguments_t::bulk
int bulk
Definition: parseCommandLine.h:27
rodsArguments_t::physicalPathString
char * physicalPathString
Definition: parseCommandLine.h:71
rodsArguments_t::resource
int resource
Definition: parseCommandLine.h:86
rodsArguments_t::excludeFile
int excludeFile
Definition: parseCommandLine.h:132
rodsArguments_t::query
int query
Definition: parseCommandLine.h:81
opterr
int opterr
Definition: rodsServer.hpp:32
LOG_ERROR
#define LOG_ERROR
Definition: rodsLog.h:43
rodsArguments_t::dim
int dim
Definition: parseCommandLine.h:34
rodsArguments_t::ttl
int ttl
Definition: parseCommandLine.h:101
rodsArguments_t::queryStr
char * queryStr
Definition: parseCommandLine.h:82
rodsArguments_t::collectionString
char * collectionString
Definition: parseCommandLine.h:32
rodsArguments_t::verify
int verify
Definition: parseCommandLine.h:112
SP_OPTION
#define SP_OPTION
Definition: rodsDef.h:263
rodsArguments_t::checksum
int checksum
Definition: parseCommandLine.h:52
rodsArguments_t::redirectConn
int redirectConn
Definition: parseCommandLine.h:51
rodsArguments_t::ticket
int ticket
Definition: parseCommandLine.h:98
rodsArguments_t::srcResc
int srcResc
Definition: parseCommandLine.h:92
rodsArguments_t::ttlValue
int ttlValue
Definition: parseCommandLine.h:102
rodsArguments_t::verifyChecksum
int verifyChecksum
Definition: parseCommandLine.h:53
rodsArguments_t::admin
int admin
Definition: parseCommandLine.h:20
rodsArguments_t::subset
int subset
Definition: parseCommandLine.h:94
parseCmdLineOpt
int parseCmdLineOpt(int argc, char **argv, const char *optString, int includeLong, rodsArguments_t *rodsArgs)
Definition: parseCommandLine.cpp:37
rodsArguments_t::global
int global
Definition: parseCommandLine.h:41
LOG_DEBUG
#define LOG_DEBUG
Definition: rodsLog.h:23
rodsArguments_t::link
int link
Definition: parseCommandLine.h:57
rodsArguments_t::condition
int condition
Definition: parseCommandLine.h:29
parseCommandLine.h
rodsArguments_t::file
int file
Definition: parseCommandLine.h:39
rodsArguments_t::echo
int echo
Definition: parseCommandLine.h:36
rodsArguments_t::age
int age
Definition: parseCommandLine.h:16
rodsArguments_t::reg
int reg
Definition: parseCommandLine.h:84
rodsArguments_t::purgeCache
int purgeCache
Definition: parseCommandLine.h:78
rodsArguments_t::veryVerbose
int veryVerbose
Definition: parseCommandLine.h:108
rodsArguments_t::backupMode
int backupMode
Definition: parseCommandLine.h:28
MAX_NAME_LEN
#define MAX_NAME_LEN
Definition: rodsDef.h:61
rodsArguments_t::ascitime
int ascitime
Definition: parseCommandLine.h:23
rodsArguments_t::retries
int retries
Definition: parseCommandLine.h:121
rodsArguments_t::serial
int serial
Definition: parseCommandLine.h:126
rodsArguments_t::subsetByVal
int subsetByVal
Definition: parseCommandLine.h:95
rodsArguments_t::noattr
int noattr
Definition: parseCommandLine.h:25
rodsArguments_t::tree
int tree
Definition: parseCommandLine.h:100
splitPathByKey
int splitPathByKey(const char *srcPath, char *dir, size_t maxDirLen, char *file, size_t maxFileLen, char key)
Definition: stringOpr.cpp:222
rodsLog.h
rodsArguments_t::agginfo
int agginfo
Definition: parseCommandLine.h:21
rodsArguments_t::resourceString
char * resourceString
Definition: parseCommandLine.h:87
LOG_NOTICE
#define LOG_NOTICE
Definition: rodsLog.h:33
rodsArguments_t::wlock
int wlock
Definition: parseCommandLine.h:59
rodsArguments_t::noPage
int noPage
Definition: parseCommandLine.h:67
rodsArguments_t::hostAddr
int hostAddr
Definition: parseCommandLine.h:48
rodsArguments_t::force
int force
Definition: parseCommandLine.h:38
rodsArguments_t::hostAddrString
char * hostAddrString
Definition: parseCommandLine.h:49
rodsArguments_t::header
int header
Definition: parseCommandLine.h:46
rodsArguments_t::physicalPath
int physicalPath
Definition: parseCommandLine.h:70
rodsLogLevel
void rodsLogLevel(int level)
Definition: rodsLog.cpp:339
rodsArguments_t::optind
int optind
Definition: parseCommandLine.h:130
rodsArguments_t::mountCollection
int mountCollection
Definition: parseCommandLine.h:61
rodsArguments_t::userString
char * userString
Definition: parseCommandLine.h:105
rodsArguments_t::recursive
int recursive
Definition: parseCommandLine.h:85
rodsArguments_t::dryrun
int dryrun
Definition: parseCommandLine.h:35
rodsArguments_t::startTimeInxStr
char * startTimeInxStr
Definition: parseCommandLine.h:66
rodsArguments_t::regRepl
int regRepl
Definition: parseCommandLine.h:123
rodsArguments_t::ascii
int ascii
Definition: parseCommandLine.h:22
rodsArguments_t::logicalPath
int logicalPath
Definition: parseCommandLine.h:72
rodsArguments_t::logicalPathString
char * logicalPathString
Definition: parseCommandLine.h:73
rodsArguments_t::subsetStr
char * subsetStr
Definition: parseCommandLine.h:96
rodsArguments_t::veryLongOption
int veryLongOption
Definition: parseCommandLine.h:60
rodsArguments_t::lfrestart
int lfrestart
Definition: parseCommandLine.h:118
rodsArguments_t::unmount
int unmount
Definition: parseCommandLine.h:106
rodsArguments_t::agevalue
int agevalue
Definition: parseCommandLine.h:17
USER_INPUT_OPTION_ERR
@ USER_INPUT_OPTION_ERR
Definition: rodsErrorTable.h:249
rodsArguments_t::masterIcat
int masterIcat
Definition: parseCommandLine.h:127
rodsArguments_t::newFlag
int newFlag
Definition: parseCommandLine.h:65
rodsLogError
void rodsLogError(int level, int errCode, char *formatStr,...)
Definition: rodsLog.cpp:422
rodsArguments_t::lfrestartFileString
char * lfrestartFileString
Definition: parseCommandLine.h:119
rodsArguments_t::test
int test
Definition: parseCommandLine.h:97
rodsArguments_t::varStr
char * varStr
Definition: parseCommandLine.h:114
rodsArguments_t::longOption
int longOption
Definition: parseCommandLine.h:56
rodsArguments_t::replNum
int replNum
Definition: parseCommandLine.h:63
rodsArguments_t::extract
int extract
Definition: parseCommandLine.h:115
rodsArguments_t::remove
int remove
Definition: parseCommandLine.h:88
rodsArguments_t::progressFlag
int progressFlag
Definition: parseCommandLine.h:74
rodsArguments_t::fileString
char * fileString
Definition: parseCommandLine.h:40
optind
int optind
rodsArguments_t::dataObjects
int dataObjects
Definition: parseCommandLine.h:33
rodsArguments_t::numberValue
int numberValue
Definition: parseCommandLine.h:69
rodsArguments_t::size
rodsLong_t size
Definition: parseCommandLine.h:91
rodsArguments_t::var
int var
Definition: parseCommandLine.h:113
rodsArguments_t::silent
int silent
Definition: parseCommandLine.h:128
rodsArguments_t::user
int user
Definition: parseCommandLine.h:104
rodsArguments_t::reconnect
int reconnect
Definition: parseCommandLine.h:103
rodsArguments_t::replNumValue
char * replNumValue
Definition: parseCommandLine.h:64
rodsArguments_t::restart
int restart
Definition: parseCommandLine.h:116
rodsArguments_t::dataType
int dataType
Definition: parseCommandLine.h:54
rods.h
rodsArguments_t::number
int number
Definition: parseCommandLine.h:68
optopt
int optopt
Definition: rodsServer.hpp:32
getRodsEnv.h