File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1919
2020
2121@click .command ()
22- @papis .cli .query_option ()
22+ @papis .cli .query_argument ()
2323@click .help_option ("-h" , "--help" )
2424@click .option (
2525 "-o" , "--out" ,
@@ -30,6 +30,8 @@ def main(query: str, out: str) -> None:
3030 """
3131 Create a simple searchable offline HTML site with your documents
3232 """
33+ if os .path .exists (out ):
34+ logger .error ("Output directory '%s' already exists." , out )
3335
3436 logger .info ("Searching in database." )
3537 docs = papis .api .get_documents_in_lib (
@@ -40,7 +42,7 @@ def main(query: str, out: str) -> None:
4042 bibtex_text = export (docs , to_format = "bibtex" )
4143
4244 shutil .copytree (template_folder , out )
43- logger .info ("Template files copied from '%s'" , template_folder )
45+ logger .info ("Template files copied from '%s'. " , template_folder )
4446 logger .info ("Saving in folder '%s'." , out )
4547
4648 bibtex_outfile = os .path .join (out , "papis-html-library.bib" )
Original file line number Diff line number Diff line change 1010
1111 < script src ="js/jquery.min.js "> </ script >
1212 < script src ="js/bibtex_js.js " type ="text/javascript " charset ="utf-8 "> </ script >
13- < bibtex src ="library.bib "> </ bibtex >
13+ < bibtex src ="papis-html- library.bib "> </ bibtex >
1414
1515 < script >
1616 $ ( function ( ) {
You can’t perform that action at this time.
0 commit comments