Adding options parsing logic to bin