Fix parsing param, update readme (wip) and requirements

This commit is contained in:
2019-09-29 00:07:21 +01:00
parent 7ed67ab7c4
commit 8b8966a47a
3 changed files with 30 additions and 28 deletions

View File

@@ -24,7 +24,7 @@ def main():
parser = argparse.ArgumentParser()
parser.add_argument("itemId", nargs='?', default=None, help="Item ID to download, use 0 for root")
parser.add_argument("localDirectory", nargs='?', default='', help="Local path of the item")
parser.add_argument("localDirectory", nargs='?', default='.', help="Local path of the item")
parser.add_argument("-y", "--yes", help="skip confirmation dialogue", action="store_true")
args = parser.parse_args()
@@ -33,7 +33,7 @@ def main():
q = queue.Queue()
if args.itemId is not None:
local = Path('args.localDirectory')
local = Path(args.localDirectory)
folder = client.folder(args.itemId).get(['name', 'id', 'size', 'modified_at', 'path_collection'])
q.put(Job(folder, local))
else: