doc: argument files: fix typos, add links
[ci skip]
This commit is contained in:
		
							parent
							
								
									419395e3d5
								
							
						
					
					
						commit
						e3fc891ea6
					
				| @ -21,14 +21,15 @@ cur:. | |||||||
| 
 | 
 | ||||||
| The format is one command-line flag or command-line argument per line. | The format is one command-line flag or command-line argument per line. | ||||||
| Now if I write `@simple.args` in a hledger command line, it will be replaced | Now if I write `@simple.args` in a hledger command line, it will be replaced | ||||||
| by all of the above options/flags: | by all of the above options/flags. | ||||||
| 
 | 
 | ||||||
| These options are just an example, but in case you're wondering: | The options above are just an example, but in case you're wondering: | ||||||
| they remove some detail, giving simplified reports which are easier for me to read at a glance. |  | ||||||
| 
 | 
 | ||||||
| - the aliases simplify the chart of accounts, hiding some distinctions (eg business vs. personal) and flattening some bank account names | - the [aliases](manual.html#account-aliases) simplify the chart of accounts, hiding some distinctions (eg business vs. personal) and flattening some bank account names | ||||||
| - the `-2` depth flag limits account depth to 2, hiding deeper subaccounts | - the `-2` [depth flag](manual.html#depth-limiting) limits account depth to 2, hiding deeper subaccounts | ||||||
| - the `cur:.` argument shows only single-character currencies, hiding a bunch of cluttersome commodities I don't want to see | - the `cur:.` [query argument](manual.html#queries) shows only single-character currencies, hiding a bunch of cluttersome commodities I don't want to see | ||||||
|  | 
 | ||||||
|  | Ie they remove some detail, giving simplified reports which are easier for me to read at a glance. | ||||||
| 
 | 
 | ||||||
| ## Usage | ## Usage | ||||||
| 
 | 
 | ||||||
| @ -42,17 +43,18 @@ $ hledger-ui --watch @simple.args assets | |||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| Options in the arguments file can be overridden by similar options later on | Options in the arguments file can be overridden by similar options later on | ||||||
| the command line, in the usual way. Eg, to show just a little more account detail: | the command line, in the [usual way](manual.html#options).  | ||||||
|  | Eg, to show just a little more account detail: | ||||||
| ```shell | ```shell | ||||||
| $ hledger bal @simple.args -3 | $ hledger bal @simple.args -3 | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ## Quoting | ## Quoting | ||||||
| 
 | 
 | ||||||
| Special characters in the arguments file may need quoted, | [Special characters](manual.html#special-characters) in the arguments file  | ||||||
| following the usual rules of your shell (bash, fish etc.),  | may need to be quoted, depending on your shell (bash, fish etc.)  | ||||||
| but they'll need one less level of quoting than on the | They'll need one less level of quoting than on the command line. | ||||||
| command line. I think: | I think | ||||||
| ```shell | ```shell | ||||||
| $ hledger bal @simple.args | $ hledger bal @simple.args | ||||||
| ``` | ``` | ||||||
| @ -60,7 +62,7 @@ is equivalent to writing: | |||||||
| ```shell | ```shell | ||||||
| $ hledger bal "--alias=/:(business|personal):/=:" "--alias=/:(bank|cash|online):/=:" "--alias=/:bofi:/=:b" "--alias=/:unify:/=:u" "--alias=/:wf:/=:w" "-2" "cur:." | $ hledger bal "--alias=/:(business|personal):/=:" "--alias=/:(bank|cash|online):/=:" "--alias=/:bofi:/=:b" "--alias=/:unify:/=:u" "--alias=/:wf:/=:w" "-2" "cur:." | ||||||
| ``` | ``` | ||||||
| So in this example, using the bash shell, the `|` pipe character does  | So in this example, using the bash shell, the `|` pipe character did  | ||||||
| not need to be quoted in the arguments file (and should not be).  | not need to be quoted in the arguments file (and should not be).  | ||||||
| 
 | 
 | ||||||
| ## Suppressing this feature | ## Suppressing this feature | ||||||
| @ -68,11 +70,11 @@ not need to be quoted in the arguments file (and should not be). | |||||||
| If you actually need to write an argument beginning with @,  | If you actually need to write an argument beginning with @,  | ||||||
| eg let's say you have an account pattern beginning with that character,  | eg let's say you have an account pattern beginning with that character,  | ||||||
| you'll want a way to disable this feature.  On unix systems at least,  | you'll want a way to disable this feature.  On unix systems at least,  | ||||||
| you can do that by inserting a `--` argument first. Eg: | you can do that by inserting a `--` (double hyphen) argument first. Eg: | ||||||
| ``` | ``` | ||||||
| $ hledger bal @somewhere.com       # looks for additional arguments in the ./somewhere.com file | $ hledger bal @somewhere.com       # looks for additional arguments in the ./somewhere.com file | ||||||
| $ hledger bal -- @somewhere.com    # matches account names containing "@somewhere.com" | $ hledger bal -- @somewhere.com    # matches account names containing "@somewhere.com" | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| On windows, this might or might not require a hledger built with GHC 8.2+.  | On windows, this double hyphen trick [might](https://ghc.haskell.org/trac/ghc/ticket/13287) require a hledger built with GHC 8.2+.  | ||||||
| (Let us know.) | (Let us know.) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user