mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 12:11:09 +00:00
refactor: consolidate all flags to use hyphens (deprecate underscore flags) (#3541)
This commit is contained in:
parent
2ed1b378cb
commit
27a2d8af14
4 changed files with 39 additions and 16 deletions
|
|
@ -62,8 +62,8 @@ describe('loadCliConfig', () => {
|
|||
vi.restoreAllMocks();
|
||||
});
|
||||
|
||||
it('should set showMemoryUsage to true when --memory flag is present', async () => {
|
||||
process.argv = ['node', 'script.js', '--show_memory_usage'];
|
||||
it('should set showMemoryUsage to true when --show-memory-usage flag is present', async () => {
|
||||
process.argv = ['node', 'script.js', '--show-memory-usage'];
|
||||
const settings: Settings = {};
|
||||
const config = await loadCliConfig(settings, [], 'test-session');
|
||||
expect(config.getShowMemoryUsage()).toBe(true);
|
||||
|
|
@ -84,7 +84,7 @@ describe('loadCliConfig', () => {
|
|||
});
|
||||
|
||||
it('should prioritize CLI flag over settings for showMemoryUsage (CLI true, settings false)', async () => {
|
||||
process.argv = ['node', 'script.js', '--show_memory_usage'];
|
||||
process.argv = ['node', 'script.js', '--show-memory-usage'];
|
||||
const settings: Settings = { showMemoryUsage: false };
|
||||
const config = await loadCliConfig(settings, [], 'test-session');
|
||||
expect(config.getShowMemoryUsage()).toBe(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue