Ok, moving too fast and I misread the documentation. def plugin(entries, options, config):
works great to get the entries, global options and plugin-specific parameters. Sorry for the noise. On Saturday, May 14, 2022 at 7:16:14 PM UTC-4 Ben L wrote: > Is there a way for a plugin to access the global options in a file? If my > main.beancount file has > > option "booking_method" "FIFO" > option "operating_currency" "USD" > option "documents" "TheDocs" > > is there a way a plugin can read what the book_method or the documents > location? As far as I can tell, a plugin has access to all the entries, and > you can pass plugin-specific options to it, but I don't see a way to read > the global options? > > Thanks, > > -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/78602bbd-43d0-4312-8edb-43d5e8e1eef6n%40googlegroups.com.
