hledger-0.16: The main command-line interface for the hledger accounting tool.

Hledger.Cli.Add

Description

A history-aware add command to help with data entry.

Note: this might not be sensible, but add has some aspirations of being
both user-friendly and pipeable/scriptable and for this reason
informational messages are mostly written to stderr rather than stdout.

Read a number of transactions from the command line, prompting,
validating, displaying and appending them to the journal file, until
end of input (then raise an EOF exception). Any command-line arguments
are used as the first transaction's description.

Prompt for and read a string value, optionally with a default value
and a validator. A validator causes the prompt to repeat until the
input is valid. May also raise an EOF exception if control-d is pressed.