| 128 | } |
| 129 | |
| 130 | static bool |
| 131 | parse_int_arg(char *arg, unsigned long *ret) |
| 132 | { |
| 133 | int res; |
| 134 | res = sscanf (arg, "%lu", ret); |
| 135 | |
| 136 | if (res == 0) { |
| 137 | cout << "expected integer at arg position " << endl; |
| 138 | return false; |
| 139 | } |
| 140 | return true; |
| 141 | } |
| 142 | |
| 143 | static void print_help() |
| 144 | { |