mas
mas copied to clipboard
🐛 [BUG]
Your Environment
mas version: 1.8.6- macOS version (
system_profiler SPSoftwareDataType -detailLevel mini): 12.2.1
mas Install Method
- [x]
brew install mas(homebrew-core)
Describe the Bug
Can't search for apps with multi-word titles.
To Reproduce
Steps to reproduce the behavior:
mas search Member Tools- See error
Unrecognized arguments: "Tools"
Use single quotes
mas search 'Member Tools'- See
1549235640 AARP Perks (1.11)1549235640 AARP Perks (1.11)
Expected Behavior
Finds Member Tools app, https://apps.apple.com/us/app/member-tools/id391093033
Actual Behavior
Doesn't parse multi-word titles without quotes. Doesn't find app with quotes.
Both of these are iOS apps, so that may be a factor. Just discovered #321.
All shells use the space character to separate arguments. You need to either quote multiple words (as your example shows), or escape the spaces between with a backslash \
It may be possible for mas to insert spaces between the arguments you supply before searching, however that feature would be in conflict with others such as #168 and #225
I think this can be closed. I have verified searching for multi-word titles does work.
% mas search 'Blackmagic Disk Speed Test'
425264550 Blackmagic Disk Speed Test (3.4.2)
999260138 GPU Benchmark: System Test (1.2.5)
MacOS: Ventura 13.4 Mas version: 1.8.6