diff options
Diffstat (limited to '')
| -rw-r--r-- | convert-to-go.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/convert-to-go.c b/convert-to-go.c new file mode 100644 index 0000000..4d449e8 --- /dev/null +++ b/convert-to-go.c @@ -0,0 +1,22 @@ +/* See LICENSE file for copyright and license details. */ +#include "common.h" + +USAGE("[-b | -w]"); + + +int +main(int argc, char *argv[]) +{ + int black = 0; + + ARGBEGIN { + case 'b': black = 1; break; + case 'w': black = 0; break; + default: + usage(); + } ARGEND; + if (argc) + usage(); + + return convert(black ? &libcharconv_go_black : &libcharconv_go_white); +} |
