OSDN Git Service

replace 'subcommand' with 'command' in doc strings and inline comments
authorscribu <mail@scribu.net>
Sat, 26 Oct 2013 20:28:57 +0000 (23:28 +0300)
committerscribu <mail@scribu.net>
Sat, 26 Oct 2013 20:28:59 +0000 (23:28 +0300)
see #848

bin/wp
features/config.feature
php/WP_CLI/Dispatcher/CompositeCommand.php
templates/man-params.mustache

diff --git a/bin/wp b/bin/wp
index 4974e18..25ea35d 100755 (executable)
--- a/bin/wp
+++ b/bin/wp
@@ -40,7 +40,7 @@ else
 fi
 
 # Pass in the path to php so that wp-cli knows which one
-# to use if it re-launches itself to run subcommands
+# to use if it re-launches itself to run other commands.
 export WP_CLI_PHP_USED="$php"
 
 exec "$php" $WP_CLI_PHP_ARGS "$SCRIPT_PATH" "$@"
index 42dfe08..6771d13 100644 (file)
@@ -67,7 +67,7 @@ Feature: Have a config file
       wp-cli.yml
       """
 
-  Scenario: Disabled subcommands
+  Scenario: Disabled commands
     Given an empty directory
     And a config.yml file:
       """
index 98cbbe7..f57d1f9 100644 (file)
@@ -56,7 +56,7 @@ class CompositeCommand {
        }
 
        function get_synopsis() {
-               return '<subcommand>';
+               return '<command>';
        }
 
        function invoke( $args, $assoc_args ) {
@@ -75,7 +75,7 @@ class CompositeCommand {
                }
 
                \WP_CLI::line();
-               \WP_CLI::line( "See 'wp help $this->name <subcommand>' for more information on a specific subcommand." );
+               \WP_CLI::line( "See 'wp help $this->name <command>' for more information on a specific command." );
        }
 
        function find_subcommand( &$args ) {
index 2d3383f..990412b 100644 (file)
@@ -5,4 +5,4 @@
       {{desc}}
 
 {{/parameters}}
-Run 'wp help <subcommand>' to get more information on a specific command.
+Run 'wp help <command>' to get more information on a specific command.