Otherwise, gengetopt would complain if it is not given even in
--select mode. Make it optional and check manually whether it
is given in --create mode.
{
int i, ret;
+
+ if (conf.create_given && !conf.base_dir_given)
+ return -E_SYNTAX;
+
/* remove trailing slashes from base-dir arg */
if (conf.base_dir_given) {
size_t len = strlen(conf.base_dir_arg);
"directory to traverse"
string typestr="path"
dependon="create"
-required
+optional
details="
- The base directory to be traversed recursively. A warning
- message is printed for each subdirectory that could not be
- read because of insufficient permission. These directories
- will be ignored when computing statistics.
+ The base directory to be traversed recursively. Must be
+ given if --create mode was selected. A warning message is
+ printed for each subdirectory that could not be read because
+ of insufficient permission. These directories will be ignored
+ when computing statistics.
"
option "one-file-system" x