app: accept cmdline args

Very simple, will probably use a command-style parser later.