DevRev interview question

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