#!/usr/bin/env raku

=begin comment

Use zef tool to identify all (nested) dependencies for a named module

=end comment

use App::Zef-Deps;

multi MAIN('.', Bool :$png=False, Bool :$json=False)  {
    print MAIN-handler-dot(:$png, :$json);
    print "\n" if $json | $png;
}

multi MAIN(*@module, Bool :$png=False, Bool :$json=False)  {
    print MAIN-handler(@module, :$png, :$json);
    print "\n" if $json | $png;
}

