Creating getopt_long array

Probably leaks memory like nobody's business