package gw.gosudoc;

import gw.lang.Gosu;
import gw.lang.cli.CommandLineAccess;
import gw.lang.reflect.ReflectUtil;

import java.io.IOException;

public class GosuDoc
{
  public static void main( String[] args ) throws IOException
  {
    Gosu.init();
    Object gosuDocArgs = ReflectUtil.construct( "gw.gosudoc.cli.GosuDocArgs" );
    CommandLineAccess.initialize( gosuDocArgs, true );
    ReflectUtil.construct( "gw.gosudoc.GSDocHTMLWriter", gosuDocArgs );
  }
}
@@ -137,16 +137,41 @@
 ception;
+%0Aimport java.util.Arrays;
 %0A%0Apublic
@@ -262,20 +262,54 @@
    Gosu.
-init
+bootstrapGosuWhenInitiatedViaClassfile
 ();%0A    
@@ -380,24 +380,81 @@
 DocArgs%22 );%0A
+    CommandLineAccess.setRawArgs( Arrays.asList(args) );%0A
     CommandL

Update initialization code