add support for command-line usage
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
// a command line interface for bibtexbrowser
|
||||
// example: php bibtexbrowser-cli.php test_cli.bib --id classical --set-title "a new title"
|
||||
$_GET['library']=1;
|
||||
function createBibEntry() { $x = new RawBibEntry(); return $x;}
|
||||
require('bibtexbrowser.php');
|
||||
bibtexbrowser_configure('BIBTEXBROWSER_BIBTEX_VIEW','reconstructed');
|
||||
bibtexbrowser_configure('BIBTEXBROWSER_BIBTEX_VIEW_FILTEREDOUT','');
|
||||
bibtexbrowser_cli($argv);
|
||||
?>
|
||||
Reference in New Issue
Block a user