-
Notifications
You must be signed in to change notification settings - Fork 629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revise the code for loading configuration files #1519
Merged
masatake
merged 27 commits into
universal-ctags:master
from
masatake:portable-scandir-implementation
Oct 13, 2017
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
d96bd36
main: introduce portable scandir implementation
masatake e7b4c94
Tmain: add --quiet --options=NONE to the test cmdlines
masatake bb5b123
main: fix typos
masatake 79eec5d
main: print the progress of loading configuration files if in verbose…
masatake 998a2d0
[SELF INCOMPATIBLE] main: remove --config-filename option
masatake 343b834
[SELF INCOMPATIBLE] main: make CTAGS_DATA_PATH obsolete
masatake b8a4429
[SELF INCOMPATIBLE] main: make the feature loading configuration file…
masatake dc66026
[SELF INCOMPATIBLE] main: introduce --optlib-path option as the alter…
masatake ce0617a
[SELF INCOMPATIBLE][INCOMPATIBLE] main: rewrite code for loading conf…
masatake 96767f1
main,refactor: remove installOptlibPathList function
masatake 64f459f
[INCOMPATIBLE] main: don't load configuration file having .conf or .c…
masatake 0128591
[SELF INCOMPATIBLE] main: don't limit files and directories .ctags an…
masatake c06b29f
Tmain: add cases for testing loading configuration files
masatake a828697
dicts: updated
masatake a334372
docs: write about new preload path and optlib feature
masatake c8f88a1
main,refactor: fix misdirected function name
masatake e076dab
main: update the description of --options in --help message
masatake 609346c
docs(man): update FILES section
masatake 5380404
Tmain: add a case for testing --optlib-dir option
masatake 7f74e49
main: introduce --options-maybe
masatake d7b5120
docs(man): write about the incompatiblity about preload files
masatake 05a89f4
docs(man): update the description for --options, and write about --op…
masatake 1cdff28
docs(man): update README
masatake 189645e
docs(man): fix grammetical errors in the description of --optlib-dir …
masatake 31e3e74
docs(man): add a note on a preload file
masatake 8e95a95
docs(web): fix a grammatical error
masatake 6c25428
docs(README.md): write about new configuration files
masatake File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
docs(man): update the description for --options, and write about --op…
…tlib-dir
- Loading branch information
commit 05a89f4be1827a13e8dd663799c6ef25e0ef321c
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1321,21 +1321,30 @@ OPTION ITEMS | |
Limits the depth of directory recursion enabled with the ``--recurse`` | ||
(``-R``) option. | ||
|
||
``--options=file|directory`` | ||
Read additional options from file or directory. If a file is specified, | ||
it should contain one option per line. If a directory is specified | ||
(and scandir function is available at build configuration time), files | ||
suffixed with .ctags or .conf under the directory are read. (On MSDOS or | ||
MSWindows this directory traverse feature is temporary disable because | ||
the contributor of this feature has no access to the platforms. | ||
Volunteers are welcome). As a special case, if "--options=NONE" is | ||
specified as the first option on the command line, it will disable | ||
the automatic reading of any configuration options from either a file | ||
or the environment (see "FILES"). | ||
|
||
``--options-maybe=file|directory`` | ||
Does the same as ``--options`` but doesn't make an error if *file* | ||
(or *directory*) doesn't exist. | ||
``--optlib-dir=[+]directory`` | ||
Adds a directory to or reset **optlib** path list. | ||
By default, optlib path list is empty. | ||
|
||
``--options=pathname`` | ||
Read additional options from file or directory. | ||
|
||
@CTAGS_NAME_EXECUTABLE@ searches *pathname* in optlib path list | ||
first. If @CTAGS_NAME_EXECUTABLE@ cannot find a file or directory | ||
in the list, @CTAGS_NAME_EXECUTABLE@ reads a file or directory | ||
at the specified *pathname*. | ||
|
||
If a file is specified, it should contain one option per line. If | ||
a directory is specified, files suffixed with ".ctags" under it | ||
are read in alphabetical order. | ||
|
||
As a special case, if "--options=NONE" is specified as the first | ||
option on the command line, preloading is disabled; the option | ||
will disable the automatic reading of any configuration options | ||
from either a file or the environment (see "FILES"). | ||
|
||
``--options-maybe=pathname`` | ||
Does the same as ``--options`` but doesn't make an error if file | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could replace "Does the same" with "Same" and "make an error" with "cause an error". |
||
(or directory) specified with *pathname* doesn't exist. | ||
|
||
``--print-language`` | ||
Just prints the parsers for specified source files, and then exits. | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds better to replace "Adds" with "Add". You could also prefix "optlib" on this line and the next with "the" if there is enough room.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
The descriptions of the other options use "...s" like "Defines"(--langdef) for an example.
I wonder which I should use. Any criteria?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be a mix already used. If you leave it as "Adds", should change "reset" to "resets".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated. My choice was "Add" as you suggested.