It doesn't appear that bean-query allows you to issue a `set` followed by a
query in a single line:

beanquery> set expand true; select balance where year=2018;
Invalid number of arguments.

When interactive, of course this is not important.  However, being able to
do this would be useful for generating from the command line reports with
expand=true.

I looked into the code and it appears this happens because the `set`
command is handled by the interactive shell and is not part of the ebnf
grammar which is where semicolon-delimited statement sequences are
defined.  The structure of the interactive shell also seems to be fairly
designed around interactivity, and handling statement sequences there looks
awkward.

Any other workarounds?

eric

-- 
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/CAFXPr0tpwbtUs4FDQGZh9XFQ%2BUu4fof%2B4YLTg7-H%2Ba9Movwhsw%40mail.gmail.com.

Reply via email to