resources: Improve foreign-resources docs and error messages
authorTimo Tijhof <krinklemail@gmail.com>
Sun, 24 Mar 2019 19:29:46 +0000 (19:29 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Sun, 24 Mar 2019 20:57:46 +0000 (20:57 +0000)
commitdd6beafe618f28a2e6f8ed8de74f9152f014afc5
treeb76c26742095c926f7a0d2bed9867d5962724b27
parentf8fcff31aaaf3230ab69c57d7bb4e5b7adc5bc0b
resources: Improve foreign-resources docs and error messages

Previously, the help message was only shown when invoking the script
without parameters. Now, if invoking it with incorrect or mispelled
parameters, it shows what you can do instead (and no more exception trace,
which it did before).

Also document clearly but briefly how to use it, and with examples.

Change-Id: Ib5ba3dc02c54039495a33d6e0cc4d026ca708ba1
includes/ForeignResourceManager.php
maintenance/manageForeignResources.php
resources/lib/foreign-resources.yaml