mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +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> {
|
async function parseArguments(): Promise<CliArgs> {
|
||||||
const argv = await yargs(hideBin(process.argv))
|
const yargsInstance = yargs(hideBin(process.argv))
|
||||||
.scriptName('gemini')
|
.scriptName('gemini')
|
||||||
.usage(
|
.usage(
|
||||||
'$0 [options]',
|
'$0 [options]',
|
||||||
@@ -171,9 +171,11 @@ async function parseArguments(): Promise<CliArgs> {
|
|||||||
.alias('v', 'version')
|
.alias('v', 'version')
|
||||||
.help()
|
.help()
|
||||||
.alias('h', '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.
|
// This function is now a thin wrapper around the server's implementation.
|
||||||
|
|||||||
Reference in New Issue
Block a user