[Console_CommandLine] read '-' as an argument
| From: | Reuben Cummings | Date: | Thu, 03 Nov 2011 07:21:16 +0000 |
| Subject: | [Console_CommandLine] read '-' as an argument | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-31294@lists.php.net to get a copy of this message | ||
How do I set up the parser to read '-' as an argument? I want an
option to read from standard input and most other cli programs use
'-'. I want to be able to type the following:
echo argument | myprogram -
When I try this with Console_CommandLine, it just hangs so I have to
use another character instead (I use '$').
echo argument | myprogram $
Thanks!