@underlap A separate library seems like a better idea. IMHO prompting the user for input in itself seems independent of parsing command line arguments.