diff options
author | Igor Wiedler <igor@wiedler.ch> | 2012-02-06 16:49:50 +0100 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2012-02-06 16:49:50 +0100 |
commit | 9e15d83022ef3d02b2f17a064578b73e304bb26f (patch) | |
tree | ce6a8f790b89d3834af572c375de2ef28ab5561c | |
parent | be74b5286cbf625109524c2e1a73c51e0dbccb30 (diff) | |
download | forums-9e15d83022ef3d02b2f17a064578b73e304bb26f.tar forums-9e15d83022ef3d02b2f17a064578b73e304bb26f.tar.gz forums-9e15d83022ef3d02b2f17a064578b73e304bb26f.tar.bz2 forums-9e15d83022ef3d02b2f17a064578b73e304bb26f.tar.xz forums-9e15d83022ef3d02b2f17a064578b73e304bb26f.zip |
[ticket/10614] Better usage output
PHPBB3-10614
-rw-r--r-- | phpBB/develop/extensions.php | 50 |
1 files changed, 21 insertions, 29 deletions
diff --git a/phpBB/develop/extensions.php b/phpBB/develop/extensions.php index 87bdd21d1a..8f466caf0c 100644 --- a/phpBB/develop/extensions.php +++ b/phpBB/develop/extensions.php @@ -1,32 +1,10 @@ <?php -// ------------------------------------------------------------- -// -// FILENAME : extensions.php -// STARTED : Fri Feb 3, 2012 -// COPYRIGHT : (C) 2012 phpBB Group -// WWW : http://www.phpbb.com/ -// LICENCE : GPL vs2.0 [ see /docs/COPYING ] -// -// ------------------------------------------------------------- - -// Console extension manager. -// -// Usage: -// -// extensions.php list -// -// Lists all extensions in the database and the filesystem. -// Next to each extension name are two flags: -// P|M - present|missing - whether the extension exists in the filesystem -// A|I - active|inactive - whether the extension is activated in the database -// -// extensions.php enable <name> -// -// Enables the specified extension. -// -// extensions.php disable <name> -// -// Disables the specified extension. +/** +* +* @copyright (c) 2012 phpBB Group +* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 +* +*/ define('IN_PHPBB', 1); define('ANONYMOUS', 1); @@ -37,7 +15,21 @@ include($phpbb_root_path . 'common.'.$phpEx); function usage() { - echo "Please see comments in extensions.php for usage\n"; + echo "Usage: extensions.php COMMAND [OPTION]...\n"; + echo "Console extension manager.\n"; + echo "\n"; + echo "list:\n"; + echo " Lists all extensions in the database and the filesystem.\n"; + echo " Next to each extension name are two flags:\n"; + echo "\n"; + echo " * P|M - present|missing: whether the extension exists in the filesystem\n"; + echo " * A|I - active|inactive: whether the extension is activated in the database\n"; + echo "\n"; + echo "enable NAME:\n"; + echo " Enables the specified extension.\n"; + echo "\n"; + echo "disable NAME:\n"; + echo " Disables the specified extension.\n"; exit(2); } |