Skip to content

Commit a8d249b

Browse files
committed
Now we show help.
1 parent fd4d65a commit a8d249b

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,13 @@ Get into the cloned **mkchromecast** directory and execute:
7171
python mkchromecast.py
7272
```
7373

74-
To kill the application just `Ctrl-c`.
74+
To get help:
75+
76+
```
77+
python mkchromecast.py -h
78+
```
79+
80+
To kill the application just press `Ctrl-c`.
7581

7682
## Contribute
7783

mkchromecast.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# This file is part of mkchromecast.
44

5+
from mkchromecast.arguments import *
56
from mkchromecast.audiodevices import *
67
from mkchromecast.streaming import *
78
from mkchromecast.cast import *

mkchromecast/arguments.py

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env python
2+
3+
# This file is part of mkchromecast.
4+
5+
import argparse
6+
from .audiodevices import *
7+
from .terminate import *
8+
9+
parser = argparse.ArgumentParser(description='Cast mac os x audio to your google cast devices.')
10+
#parser.add_argument('--dissable-auto-reconnect', action='store_true', help='If set, the application does not tries to reconnect devices in case the stream collapsed')
11+
parser.add_argument('-r', '--reset-audio', action="store_true", help='When the application fails, and you have no audio, use this option to reset.')
12+
args = parser.parse_args()
13+
14+
if args.reset_audio == True:
15+
inputint()
16+
outputint()
17+
terminate()

0 commit comments

Comments
 (0)