changed evaluation of argument as a flag from an == '-' to use strings.HasPrefix with '-' as the prefix