mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-07-13 00:20:51 +02:00
Merge branch '39-with-option-in-sub-command-search-should-accept-space-comma-or-colon-separated-list' into 'master'
Resolve "--with option in sub-command search should accept space, comma or colon separated list" Closes #39 See merge request Pmodules/src!10
This commit is contained in:
@@ -1572,7 +1572,11 @@ subcommand_search() {
|
||||
std::die 1 "%s %s: illegal value for --with option -- %s\n" \
|
||||
"${CMD}" 'search' "${arg}"
|
||||
fi
|
||||
with_modules+=" && / ${arg//\//\\/}/"
|
||||
arg=${arg//:/ }
|
||||
arg=${arg//,/ }
|
||||
for module in ${arg}; do
|
||||
with_modules+=" && / ${module//\//\\/}/"
|
||||
done
|
||||
;;
|
||||
-a | --all-releases )
|
||||
opt_use_releases="${PMODULES_DEFINED_RELEASES}"
|
||||
|
||||
Reference in New Issue
Block a user