mcthomas / Apple-Music-CLI-Player

A simple command-line Apple Music controller script which includes a "Now Playing" widget function, a playback function, and a list-out function for your Mac's Music.app library, written in sh.
MIT License
107 stars 10 forks source link

pr -T 'illegal option' #3

Closed davidem closed 1 year ago

davidem commented 1 year ago

Hi, thanks for this seemingly cool script, but my first test resulted in an error:

➜ ~ am list -p pr: illegal option -- T usage: pr [+page] [-col] [-adFfmprt] [-e[ch][gap]] [-h header] [-i[ch][gap]] [-l line] [-n[ch][width]] [-o offset] [-L locale] [-s[ch]] [-w width] [-] [file ...]

Tested on macOS 12.6.1, and it appears pr -T is no longer a valid option.

davidem commented 1 year ago

ah, -T omits making pages. Perhaps 'column' is easier to use, although you can't specify the amount of columns.

mcthomas commented 1 year ago

Hi David,

What was the original command you ran? am list -p?

davidem commented 1 year ago

yes, am list -p, but fails with every list command, as '-T' is omnipresent 😎

Omitting '-T' from the line gives proper output, but with pages.

mcthomas commented 1 year ago

Looks like I had a symlink to a different version of pr, rather than the native package at /usr/bin/pr. Please pull down and let me know if this is resolved for you, I just pushed a fix.

sxdjt commented 1 year ago

am list -p works, as do the other lists. Thank you!

davidem commented 1 year ago

Yep, it works! Thanks 👍