Skip to content

Commit

Permalink
Forgot to implement file arg reading
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilkka Laukkanen committed Jan 22, 2015
1 parent f4cbe84 commit e72f373
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions substenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ func RegexParserExpand(line string) string {
func main() {
app.Version("1.0.0")
app.Parse(os.Args[1:])

var bio = bufio.NewReader(os.Stdin)
var file = os.Stdin
if *input != nil {
file = *input
}
var bio = bufio.NewReader(file)
for {
var line, err = bio.ReadString('\n')
if err != nil {
Expand Down

0 comments on commit e72f373

Please sign in to comment.