Browse Source

* -r/chrome option

Michaël Van Canneyt 1 year ago
parent
commit
5bc1cfa9bc
1 changed files with 4 additions and 3 deletions
  1. 4 3
      utils/pas2js/webidl2pas.pp

+ 4 - 3
utils/pas2js/webidl2pas.pp

@@ -142,7 +142,7 @@ var
 begin
 begin
   Terminate;
   Terminate;
   // quick check parameters
   // quick check parameters
-  ErrorMsg:=CheckOptions('ced::f:g:hi:m:n:o:pt:u:vw:x:', [
+  ErrorMsg:=CheckOptions('ced::f:g:hi:m:n:o:pt:u:vw:x:r', [
     'help',
     'help',
     'constexternal',
     'constexternal',
     'dicttoclass::',
     'dicttoclass::',
@@ -158,7 +158,8 @@ begin
     'unitname:',
     'unitname:',
     'verbose',
     'verbose',
     'webidlversion:',
     'webidlversion:',
-    'extra:'
+    'extra:',
+    'chrome'
     ]);
     ]);
   if (ErrorMsg<>'') or HasOption('h','help') then
   if (ErrorMsg<>'') or HasOption('h','help') then
     begin
     begin
@@ -195,7 +196,7 @@ begin
     TWebIDLToPas2js(FWebIDLToPas).DictionaryClassParent:=GetOptionValue('d','dicttoclass');
     TWebIDLToPas2js(FWebIDLToPas).DictionaryClassParent:=GetOptionValue('d','dicttoclass');
 
 
   CheckBaseOption(coExpandUnionTypeArgs,'e','expandunionargs');
   CheckBaseOption(coExpandUnionTypeArgs,'e','expandunionargs');
-
+  CheckBaseOption(coChromeWindow,'r','chrome');
   // -f ?
   // -f ?
 
 
   A:=GetOptionValue('g','globals');
   A:=GetOptionValue('g','globals');