Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
fix index out of range error in cli; fixes #78
Browse files Browse the repository at this point in the history
Signed-off-by: Denys Smirnov <denys@sourced.tech>
  • Loading branch information
Denys Smirnov authored and dennwc committed Aug 28, 2018
1 parent 4d3ed3e commit 0032d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/bblfsh-cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ func main() {
if err != nil {
fatalf("couldn't parse flags: %v", err)
}
filename := args[0]

if len(args) == 0 {
fatalf("missing file to parse")
Expand All @@ -42,6 +41,7 @@ func main() {
} else if opts.V2 && opts.Query != "" {
fatalf("queries are not supported for v2 yet")
}
filename := args[0]

client, err := bblfsh.NewClient(opts.Host)
if err != nil {
Expand Down

0 comments on commit 0032d4a

Please sign in to comment.