It's very common for a file processing script to either take the filename OR '-' to get data from stdin.
With this library I cannot do this:
php convert.php input.log
php convert.php - < input.log
Whenever I pass "-" it says
ERROR: Unable to parse option -: Invalid syntax
My definition was like:
$cmd->option()
->require()
->describedAs('Input log file or `-` to read from stdin');
and value reading part was as simple as:
It's very common for a file processing script to either take the filename OR '-' to get data from stdin.
With this library I cannot do this:
Whenever I pass "-" it says
My definition was like:
and value reading part was as simple as: