blob: a14d2ba56584f5ed5cfd718b666bd8f18e025ecc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <stdio.h>
#include "cli/args.h"
int main(int argc, char** argv)
{
struct Args args;
enum ParseResult result = parse_args(argc, argv, &args);
if (result == PARSE_EXIT)
return 0;
if (result == PARSE_ERROR)
return 1;
static const char* target_names[] = { "nasm", "fasm", "masm" };
printf("input: %s\n", args.input_path);
printf("output: %s\n", args.output_path != NULL ? args.output_path : "<stdout>");
printf("target: %s\n", target_names[args.target]);
return 0;
}
|