diff options
author | Matthew Wozniak <me@woz.blue> | 2024-11-18 21:12:29 -0500 |
---|---|---|
committer | Matthew Wozniak <me@woz.blue> | 2024-11-18 21:12:29 -0500 |
commit | 154ac5ec19737e888d096c02f1817947702f0dd5 (patch) | |
tree | 3677f9fd464ddf9ea8b1864b12ad7d068858bfaf | |
parent | 2fee53f8cb846aedc8bf921c3ad6654993dd2222 (diff) | |
download | rt-154ac5ec19737e888d096c02f1817947702f0dd5.tar.gz rt-154ac5ec19737e888d096c02f1817947702f0dd5.zip |
-rw-r--r-- | main.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 <width>] [-h <height>] [-g <game>] [-e <encoder>] [-r <fps>]\n" + "\t[-q <crf>] OR [-b <bitrate>] 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; |