Minor refactoring
Move command-line options parsing to Main