Nicer way to say the same thing.

This commit is contained in:
Itamar Turner-Trauring 2021-05-03 10:25:48 -04:00
parent f6b5628ce1
commit b3ede6b9f2

View File

@ -224,7 +224,7 @@ class CpOptions(FileStoreOptions):
def parseArgs(self, *args):
if len(args) < 2:
raise usage.UsageError("cp requires at least two arguments")
self.sources = list(map(argv_to_unicode, args[:-1]))
self.sources = [argv_to_unicode(arg) for arg in args[:-1]]
self.destination = argv_to_unicode(args[-1])
synopsis = "[options] FROM.. TO"