Implementation of options parsing for import