mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-14 18:18:21 +00:00
fix(proxy): parse flag options before profile args
This commit is contained in:
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');
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user