Browse Source

增加可选api生成文档

kingang 6 years ago
parent
commit
63e0fb3fd5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      application/admin/command/Api.php

+ 1 - 0
application/admin/command/Api.php

@@ -26,6 +26,7 @@ class Api extends Command
             ->addOption('author', 'a', Option::VALUE_OPTIONAL, 'document author', $site['name'])
             ->addOption('author', 'a', Option::VALUE_OPTIONAL, 'document author', $site['name'])
             ->addOption('class', 'c', Option::VALUE_OPTIONAL | Option::VALUE_IS_ARRAY, 'extend class', null)
             ->addOption('class', 'c', Option::VALUE_OPTIONAL | Option::VALUE_IS_ARRAY, 'extend class', null)
             ->addOption('language', 'l', Option::VALUE_OPTIONAL, 'language', 'zh-cn')
             ->addOption('language', 'l', Option::VALUE_OPTIONAL, 'language', 'zh-cn')
+            ->addOption('controller', 't', Option::VALUE_REQUIRED | Option::VALUE_IS_ARRAY, 'controller name', null)
             ->setDescription('Build Api document from controller');
             ->setDescription('Build Api document from controller');
     }
     }