latest bump for RAD

This commit is contained in:
2025-06-27 11:13:21 -07:00
parent 8271fb1d62
commit 84b684735d
6 changed files with 107 additions and 22 deletions

View File

@@ -8,10 +8,9 @@ class GetIconCommand
{
public static function run(array $args): void
{
if (count($args) !== 1) {
fwrite(STDERR, "Usage: rad get-icon <icon-name>\n");
var_dump($args);
exit(1);
if (!isset($args[0]) || $args[0] === '--help') {
echo self::getHelp().PHP_EOL;
exit(!isset($args[0]) || $args[0] === '--help'? 0 : 1);
}
$icon = trim(strtolower($args[0]));