Remove spaces first
This commit is contained in:
parent
55f8fe2dfb
commit
3f43929117
1 changed files with 2 additions and 2 deletions
|
@ -46,15 +46,15 @@ class Multi():
|
|||
def main():
|
||||
try:
|
||||
newMulti = Multi(sys.argv[1].split(','), sys.argv[2].split(','))
|
||||
newMulti.remove_duplicates()
|
||||
newMulti.remove_spaces()
|
||||
newMulti.remove_duplicates()
|
||||
newMulti.print_matches()
|
||||
except IndexError:
|
||||
patterns = input("Enter patterns, separated by a comma: ")
|
||||
files = input("Enter files, separated by a comma: ")
|
||||
newMulti = Multi(patterns.split(','), files.split(','))
|
||||
newMulti.remove_duplicates()
|
||||
newMulti.remove_spaces()
|
||||
newMulti.remove_duplicates()
|
||||
newMulti.print_matches()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue