title: Java - get command line arguments, OUTSIDE of main?
body: <p>Is there a way in java to get the command line arguments that were passed to a program <em>outside</em> of the <code>main</code> function?</p>
  
  <p>I'm writing some code that's part of a larger application I don't control, and I'd like to know what the command line args were, without modifying the <code>main</code> function.</p>
  
  <p>Note: I've seen <a href="https://stackoverflow.com/q/716153/26510">how to get the JVM arguments</a>, and <a href="https://stackoverflow.com/q/716153/26510">how to get the arguments in main</a>, but would like to get it in other parts of our app, without having them saved in the <code>main</code> function, which I don't control.</p>