mirror of
https://github.com/Superredstone/spotiflac-cli.git
synced 2026-03-07 20:18:07 +01:00
feat: improve cli usage
This commit is contained in:
10
main.go
10
main.go
@@ -16,8 +16,10 @@ func main() {
|
|||||||
application := app.NewApp()
|
application := app.NewApp()
|
||||||
|
|
||||||
cmd := &cli.Command{
|
cmd := &cli.Command{
|
||||||
Name: "spotiflac-cli",
|
Name: "spotiflac-cli",
|
||||||
EnableShellCompletion: true,
|
EnableShellCompletion: true,
|
||||||
|
DefaultCommand: "help",
|
||||||
|
Usage: "Spotify downloader with playlist sync in mind.",
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "download",
|
Name: "download",
|
||||||
@@ -26,9 +28,9 @@ func main() {
|
|||||||
Destination: &song_url,
|
Destination: &song_url,
|
||||||
},
|
},
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "output",
|
Name: "output",
|
||||||
Aliases: []string{"o"},
|
Aliases: []string{"o"},
|
||||||
Usage: "set output folder",
|
Usage: "set output folder",
|
||||||
Destination: &output_folder,
|
Destination: &output_folder,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user