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?

Frederik
-- 
Components mailing list
Components@lists.ez.no
http://lists.ez.no/mailman/listinfo/components

Reply via email to