Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvement: list available commands for cli #81

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

beanallergy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant