aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Matthew Wozniak <me@woz.blue> 2024-11-18 21:12:29 -0500
committerGravatar Matthew Wozniak <me@woz.blue> 2024-11-18 21:12:29 -0500
commit154ac5ec19737e888d096c02f1817947702f0dd5 (patch)
tree3677f9fd464ddf9ea8b1864b12ad7d068858bfaf
parent2fee53f8cb846aedc8bf921c3ad6654993dd2222 (diff)
downloadrt-master.tar.gz
rt-master.zip
clean up cli a bitHEADmaster
-rw-r--r--main.c10
1 files 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 <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;