Fixed version print
This commit is contained in:
parent
5446fe32d6
commit
c525b45d6a
4
adl.py
4
adl.py
@ -19,7 +19,7 @@ ap.add_argument("-p", "--player", required=False,
|
|||||||
help="Define player used for streaming. Ex: \033[0;36mpyadl -p mpv\033[0m")
|
help="Define player used for streaming. Ex: \033[0;36mpyadl -p mpv\033[0m")
|
||||||
ap.add_argument("-d", "--download", required=False, type=bool, nargs='?', const=True, default=False,
|
ap.add_argument("-d", "--download", required=False, type=bool, nargs='?', const=True, default=False,
|
||||||
help="Download instead of streaming")
|
help="Download instead of streaming")
|
||||||
ap.add_argument("-v", "--version", required=False,
|
ap.add_argument("-v", "--version", required=False, nargs='?', const=True,
|
||||||
help="Display version and exit")
|
help="Display version and exit")
|
||||||
|
|
||||||
args = vars(ap.parse_args())
|
args = vars(ap.parse_args())
|
||||||
@ -35,7 +35,7 @@ if args["download"]:
|
|||||||
msg = "downloading"
|
msg = "downloading"
|
||||||
|
|
||||||
if args["version"]:
|
if args["version"]:
|
||||||
print("version: 0.1")
|
print("Pyadl version 0.1")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
# colored print
|
# colored print
|
||||||
|
Loading…
Reference in New Issue
Block a user