Pass multiple tracks at once in --song argument

This commit is contained in:
Ritiek Malhotra
2018-12-03 21:47:57 +05:30
parent 3df87ab763
commit 9e6d7cdc99
2 changed files with 7 additions and 3 deletions

View File

@@ -99,7 +99,10 @@ def get_arguments(raw_args=None, to_group=True, to_merge=True):
group = parser.add_mutually_exclusive_group(required=True)
group.add_argument(
"-s", "--song", help="download track by spotify link or name"
"-s",
"--song",
nargs='+',
help="download track by spotify link or name"
)
group.add_argument("-l", "--list", help="download tracks from a file")
group.add_argument(