move usage/version functions into command line