Skip to content

Commit fa07c33

Browse files
authored
Merge pull request #165 from ipfs/fix/remove-old-hack
chore: remove an old hack
2 parents ad94722 + 61619eb commit fa07c33

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

cli/parse.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,6 @@ func Parse(ctx context.Context, input []string, stdin *os.File, root *cmds.Comma
4040
return req, err
4141
}
4242

43-
// This is an ugly hack to maintain our current CLI interface while fixing
44-
// other stdin usage bugs. Let this serve as a warning, be careful about the
45-
// choices you make, they will haunt you forever.
46-
if len(req.Path) == 2 && req.Path[0] == "bootstrap" {
47-
if (req.Path[1] == "add" && req.Options["default"] == true) ||
48-
(req.Path[1] == "rm" && req.Options["all"] == true) {
49-
stdin = nil
50-
}
51-
}
52-
5343
if err := parseArgs(req, root, stdin); err != nil {
5444
return req, err
5545
}

0 commit comments

Comments
 (0)