Fix parsing param, update readme (wip) and requirements
This commit is contained in:
4
main.py
4
main.py
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user