16 Mar
2011
16 Mar
'11
8:40 p.m.
On Wed, Mar 16, 2011 at 3:29 PM, Dan McGee <dpmcgee@gmail.com> wrote:
On Wed, Mar 16, 2011 at 3:26 PM, Aaron Griffin <aaronmgriffin@gmail.com> wrote:
You can do it "GNU style" and only read from stdin if the package list is "-"
OMG, Aaron is here!
:)
That sounds like the way to go, or we are going to cause regressions to anyone that expected prior behavior. Dave- does that make sense, only read from stdin if an '-' arg is provided?
It's how a lot of tools do it. Usually for cases like this: where you have a mix of "bunch of args I want to pass" and "questions I want to ask the user" You might need to verify that getopt or whatever doesn't steal that arg, though.