diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-22 16:27:24 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-22 16:27:24 -0400 |
commit | 0b9f22b4d24e8fa545af2d7d448ddfe9fb3736ba (patch) | |
tree | 61bb92dac4a3adc07e6b61a4b7516252fc6abbe1 /src/option.h | |
parent | ccedf7d57f6cc42553f1d80189bf1491df6680e2 (diff) | |
download | fork-ledger-0b9f22b4d24e8fa545af2d7d448ddfe9fb3736ba.tar.gz fork-ledger-0b9f22b4d24e8fa545af2d7d448ddfe9fb3736ba.tar.bz2 fork-ledger-0b9f22b4d24e8fa545af2d7d448ddfe9fb3736ba.zip |
Redid the way command-line arguments are processed. Before, Ledger used - and
-- 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
Diffstat (limited to 'src/option.h')
-rw-r--r-- | src/option.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/option.h b/src/option.h index df7e35b5..e758ee99 100644 --- a/src/option.h +++ b/src/option.h @@ -42,8 +42,8 @@ void process_option(const string& name, scope_t& scope, void process_environment(const char ** envp, const string& tag, scope_t& scope); -void process_arguments(int argc, char ** argv, const bool anywhere, - scope_t& scope, std::list<string>& args); +void process_arguments(int argc, char ** argv, scope_t& scope, + std::list<string>& args); DECLARE_EXCEPTION(option_error, std::runtime_error); |