code: def mklink():
  	
  	from optparse import OptionParser
  	parser = OptionParser(usage="usage: %prog [options] link target")
  	parser.add_option(
  		'-d', '--directory',
  		help="Target is a directory (only necessary if not present)",
  		action="store_true")
  	options, args = parser.parse_args()
  	try:
  		link, target = args
  	except ValueError:
  		parser.error("incorrect number of arguments")
  	symlink(target, link, options.directory)
  	sys.stdout.write("Symbolic link created: %(link)s --> %(target)s\n" % vars())
docs: Like cmd.exe's mklink except it will infer directory status of the
  	target.