We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1db37a7 commit 36a3233Copy full SHA for 36a3233
go-migrate/cli.go
@@ -31,7 +31,7 @@ func Run(m Migration) error {
31
32
if f.Path == "" {
33
flag.Usage()
34
- return nil
+ return fmt.Errorf("missing or empty path; flag '-path <ipfs_path>' is required")
35
}
36
37
if !m.Reversible() {
sharness/t0080-migration-3-to-4.sh
@@ -223,6 +223,10 @@ test_expect_success "get pin lists" '
223
ipfs pin ls --type=indirect | sort > more_start_ind_pins
224
'
225
226
+test_expect_success "'ipfs-3-to-4 -revert' fails without -path" '
227
+ test_must_fail ipfs-3-to-4 -revert
228
+'
229
+
230
test_expect_success "'ipfs-3-to-4 -revert' succeeds" '
231
ipfs-3-to-4 -revert -path="$IPFS_PATH" >actual
232
0 commit comments