fix(proxy): parse flag options before profile args

This commit is contained in:
Wooseong Kim committed 2026-04-20 15:44:20 +09:00
1 parent afcb1abf9e
commit 6928d8bb65
2 files changed
+12 -2

No files matched your search

@@ -6,6 +6,12 @@ describe('findPositionalArg', () => {
expect(findPositionalArg(['--port', '3456', 'ccg'], ['--port'])).toBe('ccg');
});
it('skips flag options that do not take values', () => {
expect(findPositionalArg(['--insecure', 'ccg'], ['--port', '--host'], ['--insecure'])).toBe(
'ccg'
);
});
it('treats arguments after -- as positional', () => {
expect(findPositionalArg(['--', '--port', '3456'], ['--port'])).toBe('--port');
});