第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

參數(shù)太多,預(yù)期參數(shù)“命令”

參數(shù)太多,預(yù)期參數(shù)“命令”

PHP
FFIVE 2022-05-27 10:21:36
我正在嘗試通過終端運(yùn)行自定義命令,但不斷收到錯(cuò)誤消息:參數(shù)過多,預(yù)期參數(shù)“命令”。在搜索類似問題時(shí),我只能找到使用調(diào)度程序的人,而不是從終端調(diào)用命令。我嘗試運(yùn)行的命令的簽名是:class MigrateSiteMysiteCommand extends Command{protected $signature = 'migrate:site:mysite.dk {--from=} {--to=}';...然后我使用 php artisan help migrate:site:mysite.dk 我得到這個(gè):Usage:migrate:site:mysite.dk [options]Options:   --from[=FROM]   --to[=TO]-h,--help            Display this help message-q,--quiet           Do not output any message-V,--version         Display this application version   --ansi            Force ANSI output   --no-ansi         Disable ANSI output-n,--no-interaction  Do not ask any interactive question   --env[=ENV]       The environment the command should run under-v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug我嘗試以不同的方式運(yùn)行命令格式化參數(shù),但無論哪種方式都會(huì)出現(xiàn)相同的錯(cuò)誤:php artisan migrate:site:mysite.dk --from=2019-02-27 16:22:10 --to=2019-02-28 23:59:59php artisan migrate:site:mysite.dk --from='2019-02-27 16:22:10' --to='2019-02-28 23:59:59'php artisan migrate:site:mysite.dk --from '2019-02-27 16:22:10' --to '2019-02-28 23:59:59'php artisan migrate:site:mysite.dk --from 2019-02-27 16:22:10 --to 2019-02-28 23:59:59對(duì)我缺少什么或在命令中搞砸的任何建議?我已經(jīng)能夠運(yùn)行其他命令,這些命令不需要傳遞任何參數(shù)。
查看完整描述

1 回答

?
慕少森

TA貢獻(xiàn)2019條經(jīng)驗(yàn) 獲得超9個(gè)贊

參數(shù)必須包含在 " 而不是 ' 中,因此工作命令如下所示:

php artisan migrate:site:mysite.dk --from="2019-02-27 16:22:10" --to="2019-02-28 23:59:59"


查看完整回答
反對(duì) 回復(fù) 2022-05-27
  • 1 回答
  • 0 關(guān)注
  • 126 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)