From bc487be14bd1a79cbbedb9203921b357ced79ef7 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Thu, 29 Jan 2015 16:23:48 +0100 Subject: [doc] Improve example for environment variable options [ci skip] --- doc/ledger.1 | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'doc/ledger.1') diff --git a/doc/ledger.1 b/doc/ledger.1 index 2374971b..67c24470 100644 --- a/doc/ledger.1 +++ b/doc/ledger.1 @@ -1291,14 +1291,13 @@ was parsed. See the section on .Sh ENVIRONMENT Every option to .Nm -may be set using an environment variable. If -an option has a long name, for example -.Fl \-account , -setting the environment variable -.Ev LEDGER_ACCOUNT -will have the same effect as specifying that option on the command-line. -Options on the command-line always take precedence over environment variable -settings, however. +may be set using an environment variable if the option has a long name. +For example setting the environment variable +.Ev LEDGER_DATE_FORMAT="%d.%m.%Y' +will have the same effect as specifying +.Fl \-date-format Ar '%d.%m.%Y' +on the command-line. Options on the command-line always take precedence over +environment variable settings, however. .Sh FILES .Bl -tag -width -indent .It Pa ~/.ledgerrc -- cgit v1.2.3