A command line program that prompts for input is (normally) a bad idea, as it makes it impossible (or at least hard) to use it in a shell skript or some kind of batch.
It's better to use command line arguments, which would not solve your problem but making it obsolete.