OSDN Git Service

make --parent_theme mandatory
authorscribu <mail@scribu.net>
Fri, 19 Apr 2013 21:14:37 +0000 (00:14 +0300)
committerscribu <mail@scribu.net>
Fri, 19 Apr 2013 21:14:37 +0000 (00:14 +0300)
php/commands/scaffold.php

index 4b76b6c..281f97e 100644 (file)
@@ -151,7 +151,7 @@ class Scaffold_Command extends WP_CLI_Command {
         *
         * @subcommand child-theme
         *
-        * @synopsis <slug> [--theme_name=<title>] [--parent_theme=<title>] [--author=<full-name>] [--author_uri=<http-url>] [--theme_uri=<http-url>] [--activate]
+        * @synopsis <slug> --parent_theme=<title> [--theme_name=<title>] [--author=<full-name>] [--author_uri=<http-url>] [--theme_uri=<http-url>] [--activate]
         */
        function child_theme( $args, $assoc_args ) {
 
@@ -160,7 +160,6 @@ class Scaffold_Command extends WP_CLI_Command {
 
                $data = wp_parse_args( $assoc_args, array(
                        'theme_name' => ucfirst( $theme_slug ),
-                       'parent_theme' => 'twentytwelve',
                        'author' => "Me",
                        'author_uri' => "",
                        'theme_uri' => ""