MarcusBarnes / mik

The Move to Islandora Kit is an extensible PHP command-line tool for converting source content and metadata into packages suitable for importing into Islandora (or other digital repository and preservations systems).
GNU General Public License v3.0
34 stars 11 forks source link

-cc option doesn't work on Windows #322

Open mjordan opened 7 years ago

mjordan commented 7 years ago

Coming out of #321, he -cc option (short form of --checkconfig) no longer works:

./mik -c /tmp/tutorial/tutorial_config.ini --checkconfig all
Commencing MIK.
Mapping snippets are OK
Paths are OK
Input directory paths are OK.
Error with CSV input file: it appears that row 5 does not have the same number of colums (1) as the header row (7).
Error with CSV input file: it appears that row 8 does not have the same number of colums (1) as the header row (7).

./mik -c /tmp/tutorial/tutorial_config.ini -cc all
ERROR: Unable to parse option -c: Expected an argument 

I am sure this worked in the past. Perhaps running a composer update has introduced a problem with the Commando CLI library. I will investigate.

mjordan commented 7 years ago

I can no longer replicate this problem. Can anyone else?

mjordan commented 7 years ago

Hm, I confirmed this today on Windows at work, but -cc works fine on my linux laptop. Will confirm again tomorrow and rename this isssue if it's specific to Windows.

mjordan commented 7 years ago

It's specific to Windows:

php -c php.ini mik -c alping.ini -cc all
ERROR: Unable to parse option -c: Expected an argument