# or using the shorter -i syntax:
php countries.php convert -i=name -i=area
but, if '=' is given to the -i option, ALL fields are output.
We must use ' ' instead of '=' to get the expected result.
$ # all fields are output. ( but the "Output fields:" is empty.🤔 )
$ php countries.php convert -i=name -f json -v
Output fields:
Converting to json
Converted data for 250 countries into 1 format.
$ # only name field is output.
$ php countries.php convert -i name -f json -v
Output fields: name
Converting to json
Converted data for 250 countries into 1 format.
The current version of README.md#customising-the-output saids...
but, if '=' is given to the -i option, ALL fields are output. We must use ' ' instead of '=' to get the expected result.
note: The '-x' option already uses spaces.