root@0a581055a6ad:/opt/drupal# drush genc 10 --types=article
The "--types" option does not exist.
devel-generate:content [--kill] [--bundles [BUNDLES]] [--authors [AUTHORS]] [--feedback [FEEDBACK]] [--languages [LANGUAGES]] [--translations [TRANSLATIONS]] [--add-type-label] [--skip-fields [SKIP-FIELDS]] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--notify [NOTIFY]] [--xh-link XH-LINK] [--druplicon] [--] <command> [<num> [<max_comments>]]
root@0a581055a6ad:/opt/drupal# drush --version
Drush Commandline Tool 10.3.4根据文献资料的说法,这是drush 8.x的一种选择,但在drush 9.x和up中看不到任何类似的选项。对于这个新版本的drush,针对特定节点类型调用genc的打算是什么?
发布于 2020-10-11 09:51:43
是的,现在是--bundles。这也是错误输出在回显所有可能的选项时告诉您的。
drush genc 10 --bundles article,pagehttps://drupal.stackexchange.com/questions/297330
复制相似问题