equal
deleted
inserted
replaced
186 |
186 |
187 int i; |
187 int i; |
188 int ret; |
188 int ret; |
189 int colored = 0; |
189 int colored = 0; |
190 |
190 |
191 while ((i = getopt (argc, argv, "ch")) != -1) { |
191 struct option options[] = { |
|
192 {"colored", 0, 0, 'c'}, |
|
193 {"help", 0, 0, 'h'}, |
|
194 }; |
|
195 |
|
196 while ((i = getopt_long_only (argc, argv, "ch", options, NULL)) != -1) { |
192 switch (i) { |
197 switch (i) { |
193 case 'h': |
198 case 'h': |
194 usage (argv[0]); |
199 usage (argv[0]); |
195 return EXIT_SUCCESS; |
200 return EXIT_SUCCESS; |
196 case 'c': |
201 case 'c': |