Skip to content

Commit da46749

Browse files
committed
🐛 Fix dump filename panic
1 parent 80014f3 commit da46749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/dump/dump.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func preRun(cmd *cobra.Command, args []string) (err error) {
7272
func run(cmd *cobra.Command, args []string) (err error) {
7373
var filename string
7474
if len(args) > 0 {
75-
filename = args[1]
75+
filename = args[0]
7676
} else {
7777
filename, err = Filename{
7878
Dir: conf.Directory,

0 commit comments

Comments
 (0)