old_contents: import argparse
  import logging
  from .crawler import crawl
  from .url import URL
  
  
  if __name__ == '__main__':
      argp = argparse.ArgumentParser('crawly')
      argp.add_argument('url', help='target URL to crawl')
      argp.add_argument('-v', action='store_true', help='produce more output')
  
      args = argp.parse_args()
      logging.basicConfig()
      logging.getLogger().setLevel(logging.DEBUG if args.v else logging.ERROR)
  
      crawl(URL(args.url))
  
new_contents: import argparse
  import logging
  from .crawler import crawl
  from .href import Href
  
  
  if __name__ == '__main__':
      argp = argparse.ArgumentParser('crawly')
      argp.add_argument('url', help='target URL to crawl')
      argp.add_argument('-v', action='store_true', help='produce more output')
  
      args = argp.parse_args()
      logging.basicConfig()
      logging.getLogger().setLevel(logging.DEBUG if args.v else logging.ERROR)
  
      # TODO Check this is a valid URL
      crawl(Href(args.url))
  
subject: fix import