From 154ac5ec19737e888d096c02f1817947702f0dd5 Mon Sep 17 00:00:00 2001 From: Matthew Wozniak Date: Mon, 18 Nov 2024 21:12:29 -0500 Subject: clean up cli a bit --- main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.c b/main.c index 6cfa275..54f9211 100644 --- a/main.c +++ b/main.c @@ -84,7 +84,10 @@ typedef int (*LauncherMain_t)(void *instance, void *prev_inst, char *cmdline, int cmd_show); void usage() { - printf("invalid command line args! please read the readme\n"); + printf("usage:\n" + "\trt [-w ] [-h ] [-g ] [-e ] [-r ]\n" + "\t[-q ] OR [-b ] path/to/video.mp4 path/to/demo1.dem...\n"); + exit(1); } int main(int argc, const char **argv) { @@ -137,10 +140,7 @@ int main(int argc, const char **argv) { if (!args.quality) args.quality = 25; if (!args.preset) args.preset = "fast"; - if (argc < 2) { - usage(); - exit(1); - } + if (argc < 2) usage(); args.out = argv[0]; args.demo = argv + 1; args.demo_count = argc - 2; -- cgit v1.2.3-54-g00ecf