mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-11-07 06:19:43 -10:00
Use full terminal width for --help (#3515)
Co-authored-by: N. Taylor Mullen <[email protected]>
This commit is contained in:
1 parent
d094026b3b
commit
8f2da86aa5
1 file changed
+5
-3
@@ -56,7 +56,7 @@ interface CliArgs {
|
||||
}
|
||||
|
||||
async function parseArguments(): Promise<CliArgs> {
|
||||
const argv = await yargs(hideBin(process.argv))
|
||||
const yargsInstance = yargs(hideBin(process.argv))
|
||||
.scriptName('gemini')
|
||||
.usage(
|
||||
'$0 [options]',
|
||||
@@ -171,9 +171,11 @@ async function parseArguments(): Promise<CliArgs> {
|
||||
.alias('v', 'version')
|
||||
.help()
|
||||
.alias('h', 'help')
|
||||
.strict().argv;
|
||||
.strict();
|
||||
|
||||
return argv;
|
||||
yargsInstance.wrap(yargsInstance.terminalWidth());
|
||||
|
||||
return yargsInstance.argv;
|
||||
}
|
||||
|
||||
// This function is now a thin wrapper around the server's implementation.
|
||||
|
||||
Reference in new issue
Block a user