Support input arguments from environment variables

Order of input value precedence (from highest to lowest priority):

  1. Explicitly specified on the command line
  2. STDIN
  3. Environment variable