summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2018-07-09 17:58:04 +0300
committerYuval Adam <_@yuv.al>2018-07-09 17:58:04 +0300
commit1f9af4957343741e1181e2ea3a690dff9d40ed6b (patch)
treeb08801876e4b0d16f2cda5141c0dd2abfcffd663
parent38760603893b52055af7bfa8e32b8578a0da7455 (diff)
Add --subtitles flag
-rw-r--r--README.md6
-rw-r--r--src/main.rs5
2 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index d13116c..e95656b 100644
--- a/README.md
+++ b/README.md
@@ -31,6 +31,12 @@ To target a specific device:
$ slingr --device 192.168.33.44 ~/path/to/media.file
```
+To add subtitles to the playback:
+
+```bash
+$ slingr --subtitles ~/path/to/subtitles.file ~/path/to/media.file
+```
+
### Controls
During playback use the following controls:
diff --git a/src/main.rs b/src/main.rs
index cc57376..b5ea027 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -20,6 +20,11 @@ fn main() {
.long("device")
.value_name("DEVICE")
.help("Target specific device address"))
+ .arg(Arg::with_name("subtitles")
+ .short("s")
+ .long("subtitles")
+ .value_name("SUBTITLES")
+ .help("Subtitles file to use with the video"))
.arg(Arg::with_name("FILE")
.value_name("FILE")
.help("Media file to stream")