summaryrefslogtreecommitdiff
path: root/src/option.cc
Commit message (Collapse)AuthorAgeFilesLines
* Avoid ctype abuse.Taylor R Campbell2024-08-061-1/+2
| | | | | fix https://github.com/ledger/ledger/issues/2338 fix https://github.com/ledger/ledger/issues/2340
* Update copyright yearAlexis Hildebrandt2023-02-021-1/+1
| | | | [skip ci]
* Update copyright statement for 2022Alexis Hildebrandt2022-07-021-1/+1
|
* option: fix typo in error messageChristian Dietrich2019-08-011-1/+1
|
* Fix possible stack overflow in option parsing routineMartin Michlmayr2019-01-261-0/+5
| | | | | | | | | | | | | | | It is possible to create a stack overflow by giving an option that is longer than the buffer that is used during option parsing because the length of the input string is not checked. Prevent the issue by always checking the input string length and discarding options that does not fit in the buffer as invalid. This issue has been assigned CVE-2017-12481. Thanks to Gwan Yeong Kim for reporting this issue. Fixes #1222
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2018-01-271-1/+1
| | | | [ci skip]
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2017-01-051-1/+1
| | | | [ci skip]
* [misc] Update year in copyright notice to 2016Alexis Hildebrandt2016-01-021-1/+1
| | | | [ci skip]
* Bump copyright notice to 2015Alexis Hildebrandt2014-12-271-1/+1
| | | | | | The following script makes it a no-brainer: % NEXT_YEAR=2015; ag -l 'Copyright.*Wiegley' \ | xargs sed -i '' -e "s/\(Copyright.*\)-20[0-9]\{2\}/\1-${NEXT_YEAR}/"
* Bump copyright information to 2014Alexis Hildebrandt2014-02-021-1/+1
|
* Bump copyright information to 2013John Wiegley2013-02-181-1/+1
|
* Switch to using Boost.FormatJohn Wiegley2012-05-141-9/+9
|
* Allow --options to be added by the user in PythonJohn Wiegley2012-03-011-1/+0
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Fixed many Clang type conversion warnings with static_castJohn Wiegley2012-02-171-2/+2
|
* Changed an int to std::string::size_typeJohn Wiegley2012-02-171-1/+1
|
* Cleanup whitespaceJohn Wiegley2011-08-181-2/+2
|
* Changes for building with Visual Studio 2008John Wiegley2010-06-151-2/+2
|
* Untabified all source filesJohn Wiegley2010-06-111-54/+54
|
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Redesigned the expr_t, predicate_t, query_t classesJohn Wiegley2009-11-091-1/+1
|
* Segregated symbols into 5 separate namespacesJohn Wiegley2009-11-041-12/+10
| | | | | | | | | | | | | | | | | | | | | The different namespaces are: Function Value expression functions, which receive a "context" Option Command-line options Precommand Commands which are invoked before reading the journal Command Commands which are invoked after reading the journal Directive Directives that occur at column 0 in a data file This greatly eases the ability for Python uses to add intercept hooks to change how the basic Ledger module functions. An example of what should be possible soon: import ledger def my_foo_handler(value): print "--foo received:", value ledger.add_handler(ledger.Option, "foo=", my_foo_handler)
* Correct some code in process_environmentJohn Wiegley2009-10-311-3/+6
|
* Setting --date-format in ~/.ledgerrc works againJohn Wiegley2009-10-291-2/+5
|
* Fixed many compiler warnings from g++ 4.4John Wiegley2009-10-251-2/+2
|
* Added new debug option --optionsJohn Wiegley2009-06-021-7/+11
| | | | | This reports which options are in place before invoking a command, and where exactly each option value came from.
* Enabled use of pre-compiled headers by defaultJohn Wiegley2009-03-101-0/+2
|
* Corrected warnings g++-4.3.3 was complaining aboutJohn Wiegley2009-02-281-1/+1
|
* Marked all strings needing internationalizationJohn Wiegley2009-02-251-10/+9
| | | | | | | | | | | | | | | | These strings are now collected automagically in the file po/ledger.pot. If you'd like to produce a translation, just run this command after building Ledger: msginit -l LOCALE -o LANG.po -i po/ledger.pot Where LOCALE is a string like de or en_GB, and LANG is a short descriptive word for your language. Then send me this .po file so I can commit it to the Ledger sources (alternatively, you could maintain the file in a fork on GitHub), and setup the build script to format and install your new message catalog during a "make install".
* Fixed the spelling of some option exceptionsJohn Wiegley2009-02-211-4/+4
|
* Accept --long-option=valueJohn Wiegley2009-02-191-1/+1
|
* Report better errors if options are missing argsJohn Wiegley2009-02-161-4/+4
|
* If a LEDGER_ envvar has no value, ignore itJohn Wiegley2009-02-131-1/+3
|
* Dropped all unnecessary boost header files.John Wiegley2009-02-071-16/+24
|
* Restored all the option handlers from 2.6.2, but not the options themselves.John Wiegley2009-02-061-9/+9
|
* Added structural support in main() for using a REPL.John Wiegley2009-02-041-13/+22
|
* Simplified error context handling.John Wiegley2009-02-021-12/+14
|
* Whitespace cleanup.John Wiegley2009-01-291-4/+2
|
* Stopped using the generic "unsigned int" in favor of more specific types.John Wiegley2009-01-291-1/+1
|
* Redid the way command-line arguments are processed. Before, Ledger used - andJohn Wiegley2009-01-221-13/+22
| | | | | | | | | | | | | | | -- to mean special things after the command verb was seen. But now, what used to be specified as this: ledger -n reg cash -payable -- shell Is now specified as this: ledger reg -n cash not payable @shell It could also be specified as: ledger -n reg \(cash and not payable\) and @shell
* Increased copyright range to include 2009.John Wiegley2009-01-201-1/+1
|
* Fixed the way that nested caught exceptions are rethrown, and how valueJohn Wiegley2008-09-151-2/+2
| | | | expressions are displayed when errors are found in them.
* Moved around most of the files so that source code is in src/, documentationJohn Wiegley2008-08-051-0/+212
is in doc/, etc.