Nie jestem pewien, na jakim poziomie istnieje ta terminologia, ale w php-framework Laravel znajduje się narzędzie linii poleceń o nazwie Artisan, które jest używane do tworzenia cronjobs. (aka commands) Po utworzeniu polecenia. Możesz określić argumenty i opcje w następujący sposób:Jaka jest różnica między Argumentami a Opcjami?
/**
* 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),
);
}
Jaka jest różnica między tymi dwoma?
Lol Właśnie przeczytałem moje własne stare pytanie lubię "Jaka jest różnica między argumentami i opiniami." Filozoficznie. – Himmators