feat: add --stop-on-fail flag

This commit is contained in:
2026-02-28 16:34:53 +01:00
parent fcae48753b
commit 420429112a
3 changed files with 12 additions and 1 deletions

View File

@@ -57,6 +57,12 @@ func main() {
DefaultText: strconv.FormatBool(app.NoFallback),
Destination: &app.NoFallback,
},
&cli.BoolFlag{
Name: "stop-on-fail",
Usage: "continue on download failure",
DefaultText: strconv.FormatBool(app.StopOnFail),
Destination: &app.StopOnFail,
},
},
Action: func(ctx context.Context, cmd *cli.Command) error {
song_url := cmd.Args().First()