you can generate a current list of accounts using the "accounts" command:

ledger accounts

This will give you an alphabetized list of what you have.  A few
seconds with a text editor can transform that list into a good list
for use by pedantic and strict

There is also a tags command, with a values option if you want to see
which tags and tag values you have.

On Tue, Mar 12, 2013 at 8:41 AM, Russell Adams
<[email protected]> wrote:
> On Tue, Mar 12, 2013 at 02:27:13AM -0500, Russell Adams wrote:
>> > While I continue to fiddle around with this...  any suggestions or best
>> > practices welcome.
>
> Another I forgot to mention, make sure to always use these three
> flags, or add them to your ~/.ledgerrc:
>
> --strict
> --pedantic
> --explicit
>
> This way you have to define accounts first (instead of discovering
> you've created new, typoed account names). This really will contribute
> to the validity of your data, and keep you sane.
>
> Here's an example from my accounts, my .ledgerrc:
>
> ; FORCE validation
> --pedantic
> --explicit
>
> ; Only allow these accounts
> account Dest:Internal
> account Dest:Projects
> account Dest:DavidRose
> account Equity
> account Equity:Mileage
> account Equity:OpeningBalances
>
> ; Only allow these tags
> tag RECEIPT
>
> tag CSV
>
> tag MD5Sum
>     assert value =~ /^[0-9a-f]{32,}/
>
> tag ER
>     assert value =~ /^AIS(ER|IN)[0-9]{4}|^Unassigned/
>
> tag CATEGORY
>     assert value =~ 
> /^(Airfare|BoardMeeting|Capital|CarRental|Comm|CustMeals|Fees|Gas|Gift|Insurance|Lodging|Marketing|Meals|Mileage|Misc|OfficeServices|Parking|Postage|Printing|Remodelling|Shipping|Supplies|Taxi|Tolls|Travel|TravelAgencyFee|Unknown)$/
>
>
>
>
> ------------------------------------------------------------------
> Russell Adams                            [email protected]
>
> PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/
>
> Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups 
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Craig, Corona De Tucson, AZ
enderw88.wordpress.com

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to