SamuelSchlesinger / commander-cli

A simple library I wrote to allow me to quickly and easily construct command line interfaces.
MIT License
29 stars 2 forks source link

Parameter Sections #48

Open BebeSparkelSparkel opened 1 year ago

BebeSparkelSparkel commented 1 year ago

There are many programs that have a sectional opener/closer tokens like

-i opener

ffmpeg -i /tmp/a.wav -s 640x480 -i /tmp/a.yuv /tmp/a.mpg

or

( opener and ) closer. -exec opener.

find . \( -name \*.jpg -o -name \*.gif \) -exec rm {} +

I was trying to implement this but was having a hard time isolating the state correctly.

Is this something you think possible?

SamuelSchlesinger commented 1 year ago

I haven't thought about this yet at all, not sure if it is possible -- would definitely take a look at a PR for it though.