On 02/04/2009 02:32 PM Frederik Holljen wrote: > On 04/02/2009, Tobias Schlitt <t...@ez.no> wrote: >> On 02/04/2009 02:14 PM Alexandru Stanoi wrote:
>> > Some questions about SystemProcess: >> > * Are arguments values abstracted? If I use $p->argument( 'arg1' ) does >> > it mean the command takes the argument 'arg1' or does it mean it takes >> > the argument '-arg1' or '--arg1' or '/arg1'? Also some commands require >> > quotes around arguments if they contain spaces. How about arguments like >> > '-D sqlite://:memory:' - is this one or two arguments in SystemProcess? >> $p->argument( 'arg1' )->argument( 'arg2'); >> >> creates a command like: >> >> $ myCommand 'arg1' 'arg2' >> >> If you want to have s.th. like >> >> $ myCommand --foo 'bar' >> >> do >> >> $p->argument( '--foo' )->argument( 'arg2'); > Aren't you two examples the same? Yes, they are, basically. It was just to show that the component does not provide an extra intervace to specify command "options" like "--foo". Regards, Toby -- Mit freundlichen Grüßen / Med vennlig hilsen / With kind regards Tobias Schlitt (GPG: 0xC462BC14) eZ Components Developer t...@ez.no | eZ Systems AS | ez.no -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components