Updated to support inventory options from command line