Re: [PEPr] Comment on Console::Console_CommandLine
| From: | David JL | Date: | Tue, 20 Nov 2007 16:24:03 +0000 |
| Subject: | Re: [PEPr] Comment on Console::Console_CommandLine | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-48507@lists.php.net to get a copy of this message | ||
> In reading your response, I do want to clarify what I was intending.
> In the naming I suggested, Console_CommandLine is an object
> representation of "$ <someprogram> -v arg1 arg2". It becomes a
> Domain Model at that point. The Console_CommandLine_Parser is a
> Factory to parse a raw string representing a command line into the
> representation of it.
Ok, understood, well considered I think it is a good compromise ;)
But how would you handle the structure of the package then ? something
like this ?
Console
|__CommandLineParser.php
|__CommandLine.php
|__CommandLine (or CommandLineParser ?)
|__Argument.php
|__Renderer.php
|__etc...
(I'm unsure...)
--
David JL <izimobil@gmail.com>