Add after date command flag
This commit is contained in:
6
main.py
6
main.py
@@ -25,7 +25,9 @@ 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("-y", "--yes", help="skip confirmation dialogue", action="store_true")
|
||||
parser.add_argument('-a', '--after', default='0', help='Only sync items after the specified date, compared by '
|
||||
'simple string comparison against such as '
|
||||
'"2019-12-25T17:45:45-07:00"')
|
||||
args = parser.parse_args()
|
||||
|
||||
client = Client(init_oauth())
|
||||
@@ -45,7 +47,7 @@ def main():
|
||||
|
||||
threads = []
|
||||
interrupt_flag = {'exit': False}
|
||||
worker_object = Worker(q, client, settings.get('blacklist', []), interrupt_flag)
|
||||
worker_object = Worker(q, client, settings.get('blacklist', []), interrupt_flag, args.after)
|
||||
|
||||
thread_count = settings.get('thread_count', 4)
|
||||
logging.info('Launching %s threads', thread_count)
|
||||
|
||||
Reference in New Issue
Block a user