gsymcheck: Add getopt-long command line switch parsing

Affects-bug: lp-1218833