linsomniac / spotify_to_ytmusic

Copy playlists and liked music from Spotify to YTMusic
Creative Commons Zero v1.0 Universal
1.78k stars 112 forks source link

improvement: list available commands for cli #81

Open beanallergy opened 3 months ago

beanallergy commented 3 months ago

Hello!

Thank you for this cool project :) I wanted to make some changes in my fork and realized it's not so easy to know which commands are available from CLI. This change will list all available commands from cli.py

Before:

$ python3 -m spotify2ytmusic
usage: spotify2ytmusic [COMMAND] <ARGUMENTS>
       For example, try 'list_playlists'

$ python3 -m spotify2ytmusic main
ERROR: Unknown command, see https://github.com/linsomniac/spotify_to_ytmusic

After:

$ python3 -m spotify2ytmusic
usage: spotify2ytmusic [COMMAND] <ARGUMENTS>
Available commands: copy_all_playlists, copy_playlist, create_playlist, gui, list_liked_albums, list_playlists, load_liked, load_liked_albums, search, ytoauth
       For example, try 'spotify2ytmusic list_playlists'

$ python3 -m spotify2ytmusic wrong
ERROR: Unknown command 'wrong', see https://github.com/linsomniac/spotify_to_ytmusic
Available commands:  copy_all_playlists, copy_playlist, create_playlist, gui, list_liked_albums, list_playlists, load_liked, load_liked_albums, search, ytoauth