From c1425346d03bf33753299d0ab9dad8c8ec70dd4a Mon Sep 17 00:00:00 2001 From: Jeromy Date: Sat, 9 Jul 2016 13:04:09 -0700 Subject: [PATCH] remove badcode License: MIT Signed-off-by: Jeromy --- commands/cli/parse.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/commands/cli/parse.go b/commands/cli/parse.go index 58e0985efcb..929701f5688 100644 --- a/commands/cli/parse.go +++ b/commands/cli/parse.go @@ -17,11 +17,6 @@ import ( var log = logging.Logger("commands/cli") -// stdinSpecialName is a name applied to the 'stdin' file so we can differentiate -// it from potential 'real' files being passed in. The '*' character is invalid in -// path names and won't appear otherwise. -const stdinSpecialName = "*stdin*" - // Parse parses the input commandline string (cmd, flags, and args). // returns the corresponding command Request object. 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 } else { if stdin != nil && argDef.SupportsStdin && !fillingVariadic { if err := printReadInfo(stdin, msgStdinInfo); err == nil { - fileArgs[stdin.Name()] = files.NewReaderFile(stdinSpecialName, "", stdin, nil) + fileArgs[stdin.Name()] = files.NewReaderFile("stdin", "", stdin, nil) stdin = nil } }