My first guess is that
you should check the
String array that is passed as a parameter to main(). I'm not sure if these arguments are removed from the list before main() is called.
But why do you want to do this? The -X options are spcifically for the JVM. If your program wants command-line arguments, you should define your own set that can be taken from the String array passed to main(). If you can explain why you want to do this, perhaps it will make more sense to me.
Layne