Skip to content

Commit f2fbfe1

Browse files
committed
thusfar
1 parent bf3208b commit f2fbfe1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Nether/Console/Client.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ protected function
175175
$this->Size = static::FetchTerminalSize();
176176
//$this->Size->ClampX(0, 80);
177177

178+
if($this->GetOption('cli-width'))
179+
$this->Size->X = $this->GetOption('cli-width');
180+
178181
return;
179182
}
180183

@@ -1198,15 +1201,15 @@ public function
11981201
////////
11991202

12001203
$this->PrintLn(sprintf(
1201-
'%s %s%s <command> <args>',
1204+
'%s %s%s [command] [args]',
12021205
$this->Format('USAGE:', Theme::Accent),
12031206
basename($this->Name),
12041207
($Picked)?(" {$Picked}"):('')
12051208
), 2);
12061209

12071210
if(!$Picked)
12081211
$this->PrintLn($this->FormatBulletList([
1209-
'help <command>' => 'view help for specific command.',
1212+
'help [command]' => 'view help for specific command.',
12101213
'help --verbose' => 'view all help for all commands.'
12111214
]), 2);
12121215

@@ -1252,7 +1255,7 @@ public function
12521255
if($Args->Count())
12531256
$Title .= sprintf(' %s', (
12541257
$Args
1255-
->Map(fn(Meta\Arg $A)=> "<{$A->Name}>")
1258+
->Map(fn(Meta\Arg $A)=> "[{$A->Name}]")
12561259
->Join(' ')
12571260
));
12581261

0 commit comments

Comments
 (0)