File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ var rootCmd = &cobra.Command{
29
29
// Uncomment the following line if your bare application
30
30
// has an action associated with it:
31
31
RunE : func (cmd * cobra.Command , args []string ) error {
32
- if rootFlags .packages == "" {
33
- return fmt .Errorf ("Error: No packages provided. Usage: gobump --packages=\" <package1@version> <package2@version> ...\" " )
32
+ if rootFlags .packages == "" && rootFlags . replaces == "" {
33
+ return fmt .Errorf ("Error: No packages or replaces provided. Usage: gobump --packages=\" <package1@version> <package2@version> ... \" --replaces= \" <package3=package4 @version> ...\" " )
34
34
}
35
35
packages := strings .Split (rootFlags .packages , " " )
36
36
pkgVersions := map [string ]* types.Package {}
You can’t perform that action at this time.
0 commit comments