code: def find_symlinks_cmd():
  	
  	from optparse import OptionParser
  	from textwrap import dedent
  	parser = OptionParser(usage=dedent(find_symlinks_cmd.__doc__).strip())
  	options, args = parser.parse_args()
  	if not args:
  		args = ['.']
  	root = args.pop()
  	if args:
  		parser.error("unexpected argument(s)")
  	try:
  		for symlink in find_symlinks(root):
  			target = readlink(symlink)
  			dir = ['', 'D'][os.path.isdir(symlink)]
  			msg = '{dir:2}{symlink} --> {target}'.format(**locals())
  			print(msg)
  	except KeyboardInterrupt:
  		pass
docs: %prog [start-path]
  	Search the specified path (defaults to the current directory) for symlinks,
  	printing the source and target on each line.