19
私はこの用語がどのレベルにあるのかは分かりませんが、PHPフレームワークのLaravelにはcronjobを作成するために使用されているArtisanというコマンドラインツールがあります。 (別名コマンド)コマンドを作成するとき。引数ANDを次のように指定できます。引数とオプションの違いは何ですか?
/**
* Get the console command arguments.
*
* @return array
*/
protected function getArguments()
{
return array(
array('example', InputArgument::REQUIRED, 'An example argument.'),
);
}
/**
* Get the console command options.
*
* @return array
*/
protected function getOptions()
{
return array(
array('example', null, InputOption::VALUE_OPTIONAL, 'An example option.', null),
);
}
2つの違いは何ですか?
私はちょうど "議論と意見の違いは何ですか?"のような私自身の古い質問を読んでいます。確かにPhilosofical。 – Himmators