sdread option parsing