diff options
author | Yann Herklotz <git@yannherklotz.com> | 2023-05-28 00:41:34 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2023-05-28 00:41:34 +0100 |
commit | 55424f6aa4c286aee353d4d8c324ed96c4080649 (patch) | |
tree | 0a962543e6918e4d12f75d00636b4523c32434ea /src | |
parent | c133c63399701f9411bc7389d21e53e1c2bff55e (diff) | |
download | zk-visual-55424f6aa4c286aee353d4d8c324ed96c4080649.tar.gz zk-visual-55424f6aa4c286aee353d4d8c324ed96c4080649.zip |
Add org bibliography option
Diffstat (limited to 'src')
-rw-r--r-- | src/Main.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Main.hs b/src/Main.hs index 506a8c6..4ecd73c 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -205,6 +205,7 @@ import Zettel data Options = Options { optBibliography :: Maybe FilePath, + optOrgBibliography :: Maybe FilePath, optCsl :: Maybe FilePath, optIndex :: Maybe FilePath, optOutput :: Maybe FilePath, @@ -219,6 +220,7 @@ defaultOptions :: Options defaultOptions = Options { optBibliography = Nothing, + optOrgBibliography = Nothing, optCsl = Nothing, optIndex = Nothing, optOutput = Nothing, @@ -256,6 +258,11 @@ options = (ReqArg (\f opts -> opts {optOutput = Just f}) "DIR") "output DIR", Option + [] + ["org-bibliography"] + (ReqArg (\f opts -> opts {optBibliography = Just f}) "FILE") + "Bibliography FILE (default: bibliography.org)", + Option ['q'] ["quiet"] (NoArg (\opts -> opts {optQuiet = True})) |