@@ -38,13 +38,13 @@ protected function describeInputArgument(InputArgument $argument, array $options
3838 }
3939
4040 $ totalWidth = isset ($ options ['total_width ' ]) ? $ options ['total_width ' ] : strlen ($ argument ->getName ());
41- $ spacingWidth = $ totalWidth - strlen ($ argument ->getName ()) + 2 ;
41+ $ spacingWidth = $ totalWidth - strlen ($ argument ->getName ());
4242
43- $ this ->writeText (sprintf (' <info>%s</info>%s%s%s ' ,
43+ $ this ->writeText (sprintf (' <info>%s</info> %s%s%s ' ,
4444 $ argument ->getName (),
4545 str_repeat (' ' , $ spacingWidth ),
46- // + 17 = 2 spaces + <info> + </info> + 2 spaces
47- preg_replace ('/\s*[\r\n]\s*/ ' , "\n" .str_repeat (' ' , $ totalWidth + 17 ), $ argument ->getDescription ()),
46+ // + 4 = 2 spaces before <info>, 2 spaces after </info>
47+ preg_replace ('/\s*[\r\n]\s*/ ' , "\n" .str_repeat (' ' , $ totalWidth + 4 ), $ argument ->getDescription ()),
4848 $ default
4949 ), $ options );
5050 }
@@ -75,13 +75,13 @@ protected function describeInputOption(InputOption $option, array $options = arr
7575 sprintf ('--%s%s ' , $ option ->getName (), $ value )
7676 );
7777
78- $ spacingWidth = $ totalWidth - strlen ($ synopsis ) + 2 ;
78+ $ spacingWidth = $ totalWidth - strlen ($ synopsis );
7979
80- $ this ->writeText (sprintf (' <info>%s</info>%s%s%s%s ' ,
80+ $ this ->writeText (sprintf (' <info>%s</info> %s%s%s%s ' ,
8181 $ synopsis ,
8282 str_repeat (' ' , $ spacingWidth ),
83- // + 17 = 2 spaces + <info> + </info> + 2 spaces
84- preg_replace ('/\s*[\r\n]\s*/ ' , "\n" .str_repeat (' ' , $ totalWidth + 17 ), $ option ->getDescription ()),
83+ // + 4 = 2 spaces before <info>, 2 spaces after </info>
84+ preg_replace ('/\s*[\r\n]\s*/ ' , "\n" .str_repeat (' ' , $ totalWidth + 4 ), $ option ->getDescription ()),
8585 $ default ,
8686 $ option ->isArray () ? '<comment> (multiple values allowed)</comment> ' : ''
8787 ), $ options );
0 commit comments