in reply to command line invocation

See command line arguments for a problem largely similar to yours. HTH.