Skip to content

Commit 280b5e7

Browse files
authored
Merge pull request #130 from ipfs/fix/dont-ignore-arguments
Do not ignore arguments
2 parents 6c9f7fc + b335ffb commit 280b5e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

fs-repo-migrations/main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ func main() {
4646
yes := flag.Bool("y", false, "answer yes to all prompts")
4747
flag.Parse()
4848

49+
if flag.NArg() != 0 {
50+
fmt.Fprintln(os.Stderr, "unrecognized arguments")
51+
flag.Usage()
52+
os.Exit(1)
53+
}
54+
4955
fetcher := createFetcher(*distPath)
5056

5157
var (

0 commit comments

Comments
 (0)