mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-23 19:44:30 -07:00
refactor: consolidate all flags to use hyphens (deprecate underscore flags) (#3541)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user