ref: 3ca28bcf70c149cfefa97adb810ba4da2420023a
parent: 3d30208102fc4f2c19bad785d20a3201fa32879f
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Mon Mar 1 13:36:16 EST 2021
usage: style it better
--- a/main.c
+++ b/main.c
@@ -208,7 +208,7 @@
static void
usage(void)
{
- fprint(2, "usage: %s [-a AUDIOFILE] [-S subtitles] [-t N -t M ...] file.mp4\n", argv0);
+ fprint(2, "usage: %s [-a audiofile] [-S subtitlesfile] [-t n -t m ...] file.mp4\n", argv0);
threadexitsall("usage");
}
@@ -257,13 +257,6 @@
}
audio = EARGF(usage());
break;
- case 'S':
- if(sub != nil){
- fprint(2, "only one subtitle file can be specified\n");
- usage();
- }
- sub = EARGF(usage());
- break;
case 'B':
benchmark++;
break;
@@ -275,6 +268,13 @@
break;
case 'd':
debug++;
+ break;
+ case 'S':
+ if(sub != nil){
+ fprint(2, "only one subtitle file can be specified\n");
+ usage();
+ }
+ sub = EARGF(usage());
break;
case 't':
trackpref |= 1<<atoi(EARGF(usage()));