Command line script to extract declarations of packages.