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'); > * Is there some abstraction about the arguments' order? Some commands > require the object (file, dir etc) first then the options, while others > require the options first and then the object. Some commands require > '--' between the options and the object. Do you need to know the command > by heart before calling it or can some of the command's details be > abstracted? What do you need that for? You simply create a command to execute and run it. This component is not about abstracting different shell commands to common usage. 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