mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
fix: yargs locale
This commit is contained in:
@@ -81,6 +81,8 @@ export interface CliArgs {
|
|||||||
|
|
||||||
export async function parseArguments(): Promise<CliArgs> {
|
export async function parseArguments(): Promise<CliArgs> {
|
||||||
const yargsInstance = yargs(hideBin(process.argv))
|
const yargsInstance = yargs(hideBin(process.argv))
|
||||||
|
// Set locale to English for consistent output, especially in tests
|
||||||
|
.locale('en')
|
||||||
.scriptName('qwen')
|
.scriptName('qwen')
|
||||||
.usage(
|
.usage(
|
||||||
'Usage: qwen [options] [command]\n\nQwen Code - Launch an interactive CLI, use -p/--prompt for non-interactive mode',
|
'Usage: qwen [options] [command]\n\nQwen Code - Launch an interactive CLI, use -p/--prompt for non-interactive mode',
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ describe('settingsCommand', () => {
|
|||||||
it('should have the correct name and description', () => {
|
it('should have the correct name and description', () => {
|
||||||
expect(settingsCommand.name).toBe('settings');
|
expect(settingsCommand.name).toBe('settings');
|
||||||
expect(settingsCommand.description).toBe(
|
expect(settingsCommand.description).toBe(
|
||||||
'View and edit Gemini CLI settings',
|
'View and edit Qwen Code settings',
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user