🧱 Chunk is a download manager for slow and unstable servers

Running chunk without URLs silently does nothing and exits 0 #19

Open cuducos.me
Open opened by cuducos.me

Problem

chunk with no URL arguments prints nothing and exits 0 (main.go:34-61): Download() with an empty URL list returns an immediately-closed channel and the loop ends.

Impact

Misleading no-op success; scripts can't tell that nothing was downloaded.

Suggested fix

Add cobra.MinimumNArgs(1) to the root command.

Sign up or Sign in to add to the discussion.