@@ -43,13 +43,6 @@ export const cliOptions = {
4343 'If specified, creates a temporary user-data-dir that is automatically cleaned up after the browser is closed.' ,
4444 default : false ,
4545 } ,
46- customDevtools : {
47- type : 'string' ,
48- description : 'Path to custom DevTools.' ,
49- hidden : true ,
50- conflicts : 'browserUrl' ,
51- alias : 'd' ,
52- } ,
5346 channel : {
5447 type : 'string' ,
5548 description :
@@ -89,10 +82,15 @@ export const cliOptions = {
8982 description : `If enabled, ignores errors relative to self-signed and expired certificates. Use with caution.` ,
9083 } ,
9184 experimentalDevtools : {
92- type : 'boolean' as const ,
85+ type : 'boolean' ,
9386 describe : 'Whether to enable automation over DevTools targets' ,
9487 hidden : true ,
9588 } ,
89+ chromeArg : {
90+ type : 'array' ,
91+ describe :
92+ 'Additional arguments for Chrome. Only applies when Chrome is launched by chrome-devtools-mcp.' ,
93+ } ,
9694} satisfies Record < string , YargsOptions > ;
9795
9896export function parseArguments ( version : string , argv = process . argv ) {
@@ -122,6 +120,10 @@ export function parseArguments(version: string, argv = process.argv) {
122120 '$0 --viewport 1280x720' ,
123121 'Launch Chrome with the initial viewport size of 1280x720px' ,
124122 ] ,
123+ [
124+ `$0 --chrome-arg='--no-sandbox' --chrome-arg='--disable-setuid-sandbox'` ,
125+ 'Launch Chrome without sandboxes. Use with caution.' ,
126+ ] ,
125127 ] ) ;
126128
127129 return yargsInstance
0 commit comments