from dduplicated import scans, fileManager

def detect(paths):
	return scans.scan(paths)

# Remove all duplicates
def delete(files):
	fileManager.delete(files)
	exit(0)

# Make the link to first file
def link(files):
	fileManager.link(files)
	exit(0)

# Print the help menu
def help():
	print("dduplicate is a simple script in python for detect and delete duplicate files in your directory")
	print("finded duplicated files, is possible delete, link or do nothing.")
	print("Command:")
	print("\tdetect\tPATHS\tfor only search and detect duplicated files in directory.")
	print("\tdelete\tPATHS\tfor delete any duplicated files in directory, not first file.")
	print("\tlink\tPATHS\tfor link first all duplicates in first file.")
	print("\thelp\t\tshow this help")

from dduplicated import scans, fileManager

def detect(paths):
	return scans.scan(paths)

# Remove all duplicates
def delete(files):
	return fileManager.delete(files)

# Make the link to first file
def link(files):
	return fileManager.link(files)

# Print the help menu
def help():
	help = """
	dduplicate is a simple script in python for detect and delete duplicate files in your directory
	finded duplicated files, is possible delete, link or do nothing.
	Command:
	\tdetect\tPATHS\tfor only search and detect duplicated files in directory.
	\tdelete\tPATHS\tfor delete any duplicated files in directory, not first file.
	\tlink\tPATHS\tfor link first all duplicates in first file.
	\thelp\t\tshow this help
	"""
	print(help)

Update the print help and add returns to delete and link methods.
Update the print help and add returns to delete and link methods.

Signed-off-by: messiasthi <8562fc1efba9a3c99753c749fdfb1b6932b70fbf@gmail.com>

  from dduplicated import scans, fileManager
  
  def detect(paths):
  	return scans.scan(paths)
  
  # Remove all duplicates
  def delete(files):
- 	fileManager.delete(files)
+ 	return fileManager.delete(files)
- 	exit(0)
  
  # Make the link to first file
  def link(files):
- 	fileManager.link(files)
+ 	return fileManager.link(files)
- 	exit(0)
  
  # Print the help menu
  def help():
+ 	help = """
- 	print("dduplicate is a simple script in python for detect and delete duplicate files in your directory")
+ 	dduplicate is a simple script in python for detect and delete duplicate files in your directory
- 	print("finded duplicated files, is possible delete, link or do nothing.")
+ 	finded duplicated files, is possible delete, link or do nothing.
- 	print("Command:")
+ 	Command:
- 	print("\tdetect\tPATHS\tfor only search and detect duplicated files in directory.")
+ 	\tdetect\tPATHS\tfor only search and detect duplicated files in directory.
- 	print("\tdelete\tPATHS\tfor delete any duplicated files in directory, not first file.")
+ 	\tdelete\tPATHS\tfor delete any duplicated files in directory, not first file.
- 	print("\tlink\tPATHS\tfor link first all duplicates in first file.")
+ 	\tlink\tPATHS\tfor link first all duplicates in first file.
- 	print("\thelp\t\tshow this help")
+ 	\thelp\t\tshow this help
+ 	"""
+ 	print(help)
  
Update the print help and add returns to delete and link methods.
## Code Before:
from dduplicated import scans, fileManager

def detect(paths):
	return scans.scan(paths)

# Remove all duplicates
def delete(files):
	fileManager.delete(files)
	exit(0)

# Make the link to first file
def link(files):
	fileManager.link(files)
	exit(0)

# Print the help menu
def help():
	print("dduplicate is a simple script in python for detect and delete duplicate files in your directory")
	print("finded duplicated files, is possible delete, link or do nothing.")
	print("Command:")
	print("\tdetect\tPATHS\tfor only search and detect duplicated files in directory.")
	print("\tdelete\tPATHS\tfor delete any duplicated files in directory, not first file.")
	print("\tlink\tPATHS\tfor link first all duplicates in first file.")
	print("\thelp\t\tshow this help")

## Instruction:
Update the print help and add returns to delete and link methods.
## Code After:
from dduplicated import scans, fileManager

def detect(paths):
	return scans.scan(paths)

# Remove all duplicates
def delete(files):
	return fileManager.delete(files)

# Make the link to first file
def link(files):
	return fileManager.link(files)

# Print the help menu
def help():
	help = """
	dduplicate is a simple script in python for detect and delete duplicate files in your directory
	finded duplicated files, is possible delete, link or do nothing.
	Command:
	\tdetect\tPATHS\tfor only search and detect duplicated files in directory.
	\tdelete\tPATHS\tfor delete any duplicated files in directory, not first file.
	\tlink\tPATHS\tfor link first all duplicates in first file.
	\thelp\t\tshow this help
	"""
	print(help)
