In order to allow more advanced configuration (such as specifying whether an input stream is linear, or to specify bitrates for an adaptive stream -
HLS-6 ) probably need to switch over to using getopt rather than position in the argument list (given that some of the arguments are optional -
output_directory being a prime example).
Need to maintain backwards-compatibility though, to ensure that scripts written around older revisions don't suddenly break completely.
As there's been no use of getopt so far, it should be as simple as running getopt, and if nothing is matched switch to using the old schema.
Activity
2015-06-11 12:15:26
2015-06-11 12:27:15
Webhook User-Agent
View Commit
2015-06-11 12:27:15
Webhook User-Agent
View Commit
2015-06-11 12:29:59
If no options are detected, the legacy input scheme is used instead, so older scripts should continue to work (though they'll not be able to use any option related features implemented in future).
If any option is detected, the legacy scheme won't be used and errors in input will be treated as an argument error. So for example, doing the following will simply print usage
Took the decision to do it that way, as including the -i changes the argument numbering and it seems silly to insert logic to try and unpick that when arguments should really be specified one way or the other.
2015-06-11 12:30:17
2015-06-11 12:30:17
2015-06-11 12:30:21
2015-06-12 16:29:19
2015-06-12 16:29:19
2015-06-12 16:29:19
2015-06-12 16:29:31
2015-06-12 16:29:31
2015-06-12 16:29:34