aboutsummaryrefslogtreecommitdiffstats
path: root/convert-to-domino-tiles.c
blob: abb33f4664f172b4f2c5eff7ace0c77d8e2cba0e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* See LICENSE file for copyright and license details. */
#include "common.h"

USAGE("[-h | -v]");


int
main(int argc, char *argv[])
{
	int vertical = 0;

	ARGBEGIN {
	case 'h': vertical = 0; break;
	case 'v': vertical = 1; break;
	default:
		usage();
	} ARGEND;
	if (argc)
		usage();

	return convert(vertical ? &libcharconv_domino_tiles_vertical : &libcharconv_domino_tiles_horizontal);
}