Add option parsing to bin script