Skip to content

Commit 4f306da

Browse files
lePicimichalvasko
authored andcommitted
yanglint DOC description to searchpaths in help
... about the fact that it is searched recursively.
1 parent 7621b1f commit 4f306da

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

tools/lint/cmd_searchpath.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ void
2929
cmd_searchpath_help(void)
3030
{
3131
printf("Usage: searchpath [--clear] [<modules-dir-path> ...]\n"
32-
" Set paths of directories where to search for imports and\n"
33-
" includes of the schema modules. The current working directory\n"
34-
" and the path of the module being added is used implicitly.\n"
35-
" The 'load' command uses these paths to search even for the\n"
36-
" schema modules to be loaded.\n");
32+
" Set paths of directories where to search for imports and includes\n"
33+
" of the schema modules. Subdirectories are also searched. The current\n"
34+
" working directory and the path of the module being added is used implicitly.\n"
35+
" The 'load' command uses these paths to search even for the schema modules\n"
36+
" to be loaded.\n");
3737
}
3838

3939
void

tools/lint/examples/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ combination with the command name you are interested in:
3333
```
3434
> help searchpath
3535
Usage: searchpath [--clear] [<modules-dir-path> ...]
36-
Set paths of directories where to search for imports and
37-
includes of the schema modules. The current working directory
38-
and the path of the module being added is used implicitly.
39-
The 'load' command uses these paths to search even for the
40-
schema modules to be loaded.
36+
Set paths of directories where to search for imports and includes
37+
of the schema modules. Subdirectories are also searched. The current
38+
working directory and the path of the module being added is used implicitly.
39+
The 'load' command uses these paths to search even for the schema modules
40+
to be loaded.
4141
```
4242

4343
The input files referred in this document are available together with this

tools/lint/main_ni.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ help(int shortout)
172172
printf(" -p PATH, --path=PATH\n"
173173
" Search path for schema (YANG/YIN) modules. The option can be\n"
174174
" used multiple times. The current working directory and the\n"
175-
" path of the module being added is used implicitly.\n\n");
175+
" path of the module being added is used implicitly. Subdirectories\n"
176+
" are also searched\n\n");
176177

177178
printf(" -D, --disable-searchdir\n"
178179
" Do not implicitly search in current working directory for\n"

0 commit comments

Comments
 (0)