diff --git a/.changes/v0.13.1.md b/.changes/v0.13.1.md new file mode 100644 index 0000000..4c3da68 --- /dev/null +++ b/.changes/v0.13.1.md @@ -0,0 +1,3 @@ +## v0.13.1 - 2026-08-15 +### Changed +* Print help for exec command if no args given diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d1ceac..edf7443 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), and is generated by [Changie](https://github.com/miniscruff/changie). +## v0.13.1 - 2026-08-15 +### Changed +* Print help for exec command if no args given + ## v0.13.0 - 2026-08-15 ### Changed * List subcommands print out everything with no arguments diff --git a/cmd/exec.go b/cmd/exec.go index 7967926..875b9ac 100755 --- a/cmd/exec.go +++ b/cmd/exec.go @@ -5,6 +5,8 @@ package cmd import ( + "fmt" + "git.andrewnw.xyz/CyberShell/backy/pkg/backy" "git.andrewnw.xyz/CyberShell/backy/pkg/logging" @@ -29,7 +31,7 @@ func execute(cmd *cobra.Command, args []string) { parseS3Config() if len(args) < 1 { - logging.ExitWithMSG("Please provide a command to run. Pass --help to see options.", 1, nil) + logging.ExitWithMSG(fmt.Sprintf("Please provide a command to run.\n\n%s", cmd.Long), 1, nil) } opts := backy.NewConfigOptions(configFile, diff --git a/cmd/version.go b/cmd/version.go index 0955765..8b6f739 100755 --- a/cmd/version.go +++ b/cmd/version.go @@ -7,7 +7,7 @@ import ( "github.com/spf13/cobra" ) -const versionStr = "0.13.0" +const versionStr = "0.13.1" var ( versionCmd = &cobra.Command{