summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
07469b2)
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.
+
+ 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);
/* 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"
"directory to traverse"
string typestr="path"
dependon="create"
- 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
"
option "one-file-system" x