| @@ 86-91 (lines=6) @@ | ||
| 83 | ); |
|
| 84 | ||
| 85 | $arg = getopt ( null, $arrValid ); |
|
| 86 | if ( array_key_exists ( 'init', $arg ) ) { |
|
| 87 | $maker = new \Classes\MakerConfigFile( $arg, dirname($_path) ); |
|
| 88 | } |
|
| 89 | else { |
|
| 90 | $maker = new \Classes\MakerFile( new \Classes\Config( $arg, dirname($_path), count ( $argv ) ) ); |
|
| 91 | } |
|
| 92 | ||
| 93 | $maker->run (); |
|
| 94 | ||
| @@ 89-95 (lines=7) @@ | ||
| 86 | ||
| 87 | $_path = __DIR__; |
|
| 88 | $arg = getopt ( null , $arrValid ); |
|
| 89 | if ( array_key_exists ( 'init' , $arg ) ) |
|
| 90 | { |
|
| 91 | $maker = new \Classes\MakerConfigFile( $arg , $_path ); |
|
| 92 | } else |
|
| 93 | { |
|
| 94 | $maker = new \Classes\MakerFile( new \Classes\Config( $arg , $_path, count($argv) ) ); |
|
| 95 | } |
|
| 96 | ||
| 97 | $maker->run (); |
|
| 98 | ||