@@ -46,7 +46,7 @@ public static function main($argv = [])
46
46
47
47
if (!isset ($ argv [1 ])) {
48
48
file_put_contents ('php://stderr ' , 'Not enough arguments ' . PHP_EOL );
49
- self :: help ();
49
+ ( new UI )-> help ();
50
50
throw new \RuntimeException ('' , 1 );
51
51
}
52
52
@@ -60,12 +60,12 @@ public static function main($argv = [])
60
60
61
61
if (boolval (preg_match ('/^\-/ ' , $ argv [1 ]))) {
62
62
if (isset ($ options ['h ' ])) {
63
- self :: help ();
63
+ ( new UI )-> help ();
64
64
throw new \RuntimeException ('' , 0 );
65
65
}
66
66
67
67
if (isset ($ options ['v ' ])) {
68
- self :: version ();
68
+ ( new UI )-> version ();
69
69
throw new \RuntimeException ('' , 0 );
70
70
}
71
71
@@ -104,14 +104,14 @@ public static function main($argv = [])
104
104
public function help ()
105
105
{
106
106
echo 'This is a parser for API Blueprint files in PHP. ' . PHP_EOL . PHP_EOL ;
107
- echo "The following options can be used:. \n" ;
108
- echo "\t-f \tSpecifies the file to parse. \n" ;
109
- echo "\t-t \tSpecifies the template to use. (defaults to 'default') \n" ;
110
- echo "\t-s \tSort displayed values [All|None|Structures|Webservices] (defaults to the way the objects are in the file) \n" ;
111
- echo "\t-i \tSpecifies an image to display in the header. \n" ;
112
- echo "\t-c \tSpecifies a CSS file to include (value is put in a link element without checking). \n" ;
113
- echo "\t-j \tSpecifies a JS file to include (value is put in a script element without checking). \n" ;
114
- echo "\t-h \tDisplays this text. \n" ;
107
+ echo "The following options can be used:. " . PHP_EOL ;
108
+ echo "\t-f \tSpecifies the file to parse. " . PHP_EOL ;
109
+ echo "\t-t \tSpecifies the template to use. (defaults to 'default') " . PHP_EOL ;
110
+ echo "\t-s \tSort displayed values [All|None|Structures|Webservices] (defaults to the way the objects are in the file) " . PHP_EOL ;
111
+ echo "\t-i \tSpecifies an image to display in the header. " . PHP_EOL ;
112
+ echo "\t-c \tSpecifies a CSS file to include (value is put in a link element without checking). " . PHP_EOL ;
113
+ echo "\t-j \tSpecifies a JS file to include (value is put in a script element without checking). " . PHP_EOL ;
114
+ echo "\t-h \tDisplays this text. " . PHP_EOL ;
115
115
}
116
116
117
117
/**
0 commit comments