old_contents: # The client of DDuplicated tool.
  from os import path as opath, getcwd
  from sys import argv
  
  from dduplicated import commands
  
  def getPaths(params):
  	paths = []
  	for param in params:
  		path = opath.join(getcwd(), param)
  		if opath.exists(path) and opath.isdir(path) and not opath.islink(path):
  			paths.append(path)
  
  	return paths
  
  def main():
  	params = argv
  
  	# Remove the command name
  	del params[0]
  
  	if len(params) == 0 or "help" in params:
  		commands.help()
  	elif "detect" in params:
  		duplicates = commands.detect(getPaths(params))
  		if len(duplicates) < 1:
  			print("No duplicates found")
  			print("Great! Bye!")
  			exit(0)
  
  		for (key, values) in duplicates.items():
  			print(key + " -> ")
  			for value in values:
  				print("\t\t\t\t\t" + value)
  
  	elif "delete" in params:
  		commands.delete(commands.detect(getPaths(params)))
  	elif "link" in params:
  		commands.link(commands.detect(getPaths(params)))
  	else:
  		commands.help()
  	exit(0)
  
new_contents: # The client of DDuplicated tool.
  from os import path as opath, getcwd
  from sys import argv
  
  from dduplicated import commands
  
  def get_paths(params):
  	paths = []
  	for param in params:
  		path = opath.join(getcwd(), param)
  		if opath.exists(path) and opath.isdir(path) and not opath.islink(path):
  			paths.append(path)
  
  	return paths
  
  
  def main():
  	params = argv
  	processed_files = []
  	# Remove the command name
  	del params[0]
  
  	if len(params) == 0 or "help" in params:
  		commands.help()
  	elif "detect" in params:
  		processed_files = commands.detect(get_paths(params))
  
  	elif "delete" in params:
  		processed_files = commands.delete(commands.detect(get_paths(params)))
  		
  	elif "link" in params:
  		processed_files = commands.link(commands.detect(get_paths(params)))
  	
  	else:
  		commands.help()
  	
  	if len(processed_files) > 0:
  		print(processed_files)
  	else:
  		print("No duplicates found")
  		print("Great! Bye!")
  		
  	exit(0)
  
subject: Update in outputs and fix spaces and names.