aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-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;