[go: nahoru, domu]

Skip to content

Commit

Permalink
Specify multiple packages to process
Browse files Browse the repository at this point in the history
  • Loading branch information
igrmk authored and kisielk committed Apr 24, 2018
1 parent 8a6cb62 commit d8ba729
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func main() {

args := flag.Args()

if len(args) != 1 {
if len(args) < 1 {
log.Fatal("need one package name to process")
}

Expand All @@ -66,8 +66,10 @@ func main() {
if err != nil {
log.Fatalf("failed to get cwd: %s", err)
}
if err := processPackage(cwd, args[0], 0); err != nil {
log.Fatal(err)
for _, a := range args {
if err := processPackage(cwd, a, 0); err != nil {
log.Fatal(err)
}
}

fmt.Println("digraph godep {")
Expand Down

0 comments on commit d8ba729

Please sign in to comment.