Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3-cmds
Commits
8a7e45e7
Commit
8a7e45e7
authored
Jul 09, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove badcode
License: MIT Signed-off-by:
Jeromy
<
why@ipfs.io
>
parent
36285b14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
cli/parse.go
cli/parse.go
+1
-6
No files found.
cli/parse.go
View file @
8a7e45e7
...
...
@@ -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
(
stdin
SpecialName
,
""
,
stdin
,
nil
)
fileArgs
[
stdin
.
Name
()]
=
files
.
NewReaderFile
(
"
stdin
"
,
""
,
stdin
,
nil
)
stdin
=
nil
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment