Skip to content

Commit

Permalink
Add check keyword to docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat authored and Azzaare committed Nov 2, 2024
1 parent 8f9dcc9 commit 48cad7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BibParser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ include("cff.jl")
using .CFF: CFF

"""
parse_file(path::String; parser::Symbol = :BibTeX)
parse_file(path::String, parser::Symbol = :BibTeX; check=:error)
Parse a bibliography file. Default to BibTeX format. Other options available: CFF (CSL-JSON coming soon).
For bibliography formats with formatting rules (such as `:BibTeX`), the `check` keyword argument can be set to `:none` (or `nothing`), `:warn`, or `:error`.
"""
Expand All @@ -28,7 +28,7 @@ parse_file(path, ::Val{:CFF}; check) = CFF.parse_file(path)
parse_file(path, parser=:BibTeX; check=:error) = parse_file(path, Val(parser); check)

"""
parse_entry(entry::String; parser::Symbol = :BibTeX)
parse_entry(entry::String; parser::Symbol = :BibTeX, check = :error)
Parse a string entry. Default to BibTeX format. No other options available yet (CSL-JSON coming soon).
For bibliography formats with formatting rules (such as `:BibTeX`), the `check` keyword argument can be set to `:none` (or `nothing`), `:warn`, or `:error`.
Expand Down

0 comments on commit 48cad7b

Please sign in to comment.