mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Use full terminal width for --help (#3515)
Co-authored-by: N. Taylor Mullen <ntaylormullen@google.com>
This commit is contained in:
@@ -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