nategood / commando

An Elegant CLI Library for PHP
MIT License
798 stars 80 forks source link

Command::printHelp() on Windows => file "nil" created with "tput command not found" #103

Closed cedx closed 4 years ago

cedx commented 5 years ago

PHP: 7.3.7 OS: Windows 10 Commando: 0.4.0

When calling the method Command::printHelp() on Windows, a file is written in the current directory. This file is named nil and contains an error about the tput command not found.

Minimal code for reproducing this error:

<?php
$program = new \Commando\Command();
$program->setHelp('A dumb help message.');
$program->printHelp();
cedx commented 4 years ago

My annual summer cleaning of open issues 😄 Closing this one because it's still not resolved after one year... and I don't use Commando anymore, so this is no longer a problem for me.