feat: Support artist - song format in command line arguments

Updated the CLI to accept arguments in two formats:
1. Single argument with dash separator: "ARTIST - SONG"
2. Two separate arguments: ARTIST SONG

This makes it more convenient for users to input artist and song information.
Also updated README to document both usage formats.
This commit is contained in:
2025-08-11 14:28:04 +02:00
parent af71f5e80a
commit 23abf3adda
2 changed files with 32 additions and 6 deletions
+8 -1
View File
@@ -28,8 +28,14 @@ A Python package to fetch song lyrics from [paroles.net](https://www.paroles.net
### Command Line Interface
After installation, you can use the command line interface:
After installation, you can use the command line interface with two formats:
1. Single argument with dash separator:
```bash
paroles-scraper "Artist Name - Song Title"
```
2. Two separate arguments:
```bash
paroles-scraper "Artist Name" "Song Title"
```
@@ -37,6 +43,7 @@ paroles-scraper "Artist Name" "Song Title"
### Examples
```bash
paroles-scraper "SCORPIONS - SEND ME AN ANGEL"
paroles-scraper "Ed Sheeran" "Shape of You"
paroles-scraper "Imagine Dragons" "Believer"
```