From c7f7c6e1783e954b82910aad1f82cd836fd715fd Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Sat, 2 Sep 2023 20:24:32 +0900 Subject: [PATCH 1/3] Update status badge --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index e839ed7..d3d37d6 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,7 @@ Alternatively, [download a release](https://github.com/auraphp/Aura.Cli/releases ### Quality -[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/auraphp/Aura.Cli/badges/quality-score.png?b=develop-2)](https://scrutinizer-ci.com/g/auraphp/Aura.Cli/) -[![Code Coverage](https://scrutinizer-ci.com/g/auraphp/Aura.Cli/badges/coverage.png?b=develop-2)](https://scrutinizer-ci.com/g/auraphp/Aura.Cli/) -[![Build Status](https://travis-ci.org/auraphp/Aura.Cli.png?branch=develop-2)](https://travis-ci.org/auraphp/Aura.Cli) +[![Continuous Integration](https://github.com/auraphp/Aura.Cli/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/auraphp/Aura.Cli/actions/workflows/continuous-integration.yml) To run the unit tests at the command line, issue `composer install` and then `composer test` at the package root. This requires [Composer](http://getcomposer.org/) to be available as `composer`. From d37a0e54e8e80f26b6d79dd42b31c67edfd6fcfb Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Sat, 2 Sep 2023 20:25:21 +0900 Subject: [PATCH 2/3] Remove composer 2.x mention --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d3d37d6..e134947 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ independent _Help_ object for describing commands. ### Installation -This library requires PHP 7.2 or later; we recommend using the latest available version of PHP as a matter of principle. If you are interested in using this package for older PHP versions, use version 2.x for PHP 5.3+. +This library requires PHP 7.2 or later; we recommend using the latest available version of PHP as a matter of principle. It has no userland dependencies. From 2e72dcca20e12fe1cc034012e45ba1e7097606eb Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Sat, 2 Sep 2023 21:41:29 +0900 Subject: [PATCH 3/3] Change array short syntax in README --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index e134947..2366205 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ its values will be stored in an array. ```php getopt($options); ?> @@ -139,9 +139,9 @@ The values will be stored under both names; ```php getopt($options); @@ -155,10 +155,10 @@ of the option name. ```php getopt($options); @@ -213,10 +213,10 @@ Defined options will be removed from the arguments automatically. ```php getopt($options); @@ -351,10 +351,10 @@ class MyCommandHelp extends Help { $this->setSummary('A single-line summary.'); $this->setUsage(' []'); - $this->setOptions(array( + $this->setOptions([ 'f,foo' => "The -f/--foo option description.", 'bar::' => "The --bar option description.", - )); + ]); $this->setDescr("A multi-line description of the command."); } } @@ -419,12 +419,12 @@ $stdio = $cli_factory->newStdio(); $help = new Help(new OptionFactory); $this->setSummary('A single-line summary.'); -$help->setOptions(array( +$help->setOptions([ 'f,foo' => "The -f/--foo option description.", 'bar::' => "The --bar option description.", '#arg1' => "The description for argument 1.", '#arg2?' => "The description for argument 2.", -)); +]); $this->setDescr("A multi-line description of the command."); $stdio->outln($help->getHelp('my-command'));