forked from run-llama/llama_index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
llamaindex-cli to handle glob patterns correctly
This change modifies the llamaindex-cli such that it can handle the --files argument to properly handle glob patterns. In order to handle globs like the example given in the issue, the number of arguments (nargs) value must be set to + in order to return a list of files or patterns in this case. Because argparse now returns a list, so restructuring on how the files are processed needed to be changed along with the signature of the function. Fixes run-llama#11798 Signed-off-by: Eric Brown <[email protected]>
- Loading branch information
Showing
1 changed file
with
10 additions
and
6 deletions.
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