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:
@@ -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"
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user