Re:Spongebob-CLI – Watch classic spongebob from the terminal
by kkirsche on Sunday February 13, 2022 @05:23PM
(#30326230)
If, like me, you forget where to split the command and arguments, shlex.split in the standard library can split the raw string for you.
[ Parent
| on HN ]
Re:Spongebob-CLI – Watch classic spongebob from the terminal
by Doxin on Monday February 14, 2022 @07:29AM
(#30331202)
Rule of thumb is every space, except ones you'd normally put between quotes. so e.g.
foo quix-quiz "bar baz"
turns into ["foo", "quix-quiz", "bar baz"]
Though do note that you don't get an extra set of quotes on "bar baz" which is slightly confusing, but makes sense once you think about it a bit.