DevRev Interview Question

How would you handle parsing command-line arguments in a Java application?