@@ -34,6 +34,7 @@ def main():
3434def batch (path , db_path , exclude_regex , verbose ):
3535 """
3636 Update database once, searches for all directories recursively.
37+ Deletes existing database to ensure its synced with sidecar metadata files.
3738 """
3839 scan .batch (path , db_path , exclude_regex , verbose )
3940
@@ -86,15 +87,20 @@ def query(query_str, db_path):
8687
8788
8889@main .command ()
89- @click .argument ("path" , required = True , type = click .Path (exists = True , file_okay = False , dir_okay = True ))
90+ @click .argument (
91+ "path" , required = True , type = click .Path (exists = True , file_okay = False , dir_okay = True )
92+ )
9093@click .option (
91- "--needed-until" , "-nu" ,
94+ "--needed-until" ,
95+ "-nu" ,
9296 default = None ,
9397 help = "Optional account termination date (YYYY-MM-DD)" ,
9498)
9599@click .option (
96- "--overwrite" , "-o" ,
97- is_flag = True , default = False ,
100+ "--overwrite" ,
101+ "-o" ,
102+ is_flag = True ,
103+ default = False ,
98104 help = "Overwrite existing metadata." ,
99105)
100106@click .option ("-v" , "--verbose" , is_flag = True , default = False )
@@ -104,5 +110,6 @@ def create(path, needed_until, overwrite, verbose):
104110 """
105111 _create .generate_metadata (path , needed_until , overwrite , verbose )
106112
113+
107114if __name__ == "__main__" :
108115 main ()
0 commit comments