Skip to content

Instantly share code, notes, and snippets.

/first try Secret

Created February 4, 2017 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/3523deab720da1630f57aa1bf3f9d43c to your computer and use it in GitHub Desktop.
Save anonymous/3523deab720da1630f57aa1bf3f9d43c to your computer and use it in GitHub Desktop.
multi MAIN(@ARGS where{ @ARGS.any == '--version' | '-V'}){
say "$pkg $pkg_version";
exit(0);
}
multi MAIN( Bool :$help,
Str :$export_dir! where
{ .IO.d // die "$pkg: export directory does not exist." },
Str :$library_root where
{ .IO.d // die "$pkg: export directory does not exist." }
= $export_dir,
Str :$dbfile where
{ .IO.f && .IO.r // die "$pkg: banshee database does not "
~ " exist or is not readable" }
= "%*ENV<HOME>/.config/banshee-1/banshee.db"
)
{
exit 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment