From 1ec7c2109bd6b45b02f3b73e82d210f38a5f0af9 Mon Sep 17 00:00:00 2001 From: JohnAlbin Date: Fri, 1 Apr 2011 03:20:22 +0800 Subject: [PATCH] by JohnAlbin: Add "name" as an option. --- zen-internals/zen.drush.inc | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/zen-internals/zen.drush.inc b/zen-internals/zen.drush.inc index cf89113..d4e270a 100644 --- a/zen-internals/zen.drush.inc +++ b/zen-internals/zen.drush.inc @@ -17,6 +17,7 @@ function zen_drush_command() { 'machine_name' => '[optional] A machine-readable name for your theme.', ), 'options' => array( + 'name' => 'A name for your theme.', 'machine-name' => '[a-z, 0-9] A machine-readable name for your theme.', // @TODO: Add these options: // 'without-rtl' => 'Whether to remove all RTL stylesheets.', @@ -34,7 +35,11 @@ function zen_drush_command() { /** * Create a Zen sub-theme using the starter kit. */ -function drush_zen($name = 'My theme', $machine_name = NULL) { +function drush_zen($name = NULL, $machine_name = NULL) { + // Determine the theme name. + if (!isset($name)) { + $name = drush_get_option('name'); + } // Determine the machine name. if (!isset($machine_name)) { -- 1.7.4.1