@cryptotaxi247 / kubo / commits / c1425346d

remove badcode

License: MIT Signed-off-by: Jeromy <why@ipfs.io>

Jeromy committed Jul 9, 2016 at 13:04 UTC c1425346d03bf33753299d0ab9dad8c8ec70dd4a
1 file changed +1 -6
commands/cli/parse.go
+1 -6
@@ -17,11 +17,6 @@ import (
17
18 var log = logging.Logger("commands/cli")
19
20 -// stdinSpecialName is a name applied to the 'stdin' file so we can differentiate
21 -// it from potential 'real' files being passed in. The '*' character is invalid in
22 -// path names and won't appear otherwise.
23 -const stdinSpecialName = "*stdin*"
24 -
20 // Parse parses the input commandline string (cmd, flags, and args).
21 // returns the corresponding command Request object.
22 func Parse(input []string, stdin *os.File, root *cmds.Command) (cmds.Request, *cmds.Command, []string, error) {
@@ -312,7 +307,7 @@ func parseArgs(inputs []string, stdin *os.File, argDefs []cmds.Argument, recursi
307 } else {
308 if stdin != nil && argDef.SupportsStdin && !fillingVariadic {
309 if err := printReadInfo(stdin, msgStdinInfo); err == nil {
315 - fileArgs[stdin.Name()] = files.NewReaderFile(stdinSpecialName, "", stdin, nil)
310 + fileArgs[stdin.Name()] = files.NewReaderFile("stdin", "", stdin, nil)
311 stdin = nil
312 }
313 }