mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 16:36:20 +00:00
Nicer way to say the same thing.
This commit is contained in:
parent
f6b5628ce1
commit
b3ede6b9f2
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user