bug-recutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-recutils] [bug #41616] new special field %allowed?


From: Jose E. Marchesi
Subject: Re: [bug-recutils] [bug #41616] new special field %allowed?
Date: Tue, 18 Mar 2014 22:21:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Hi Karl.
    
    when making up a new recfile, i know exactly which fields i want to have.  
in
    order to make it possible to check for typos in field names, how about a new
    special field %allowed that would just declare "this field is ok but
    optional", in addition to those declared with %mandatory and %key.
    
    then, if and only if %allowed is specified, recfix could complain if any 
field
    is present that is not given in the union of %allowed + %mandatory + %key.
    
    If there's another way to accomplish that, please let me know. (aside from
    programming it myself with an external script, which would not be hard, of
    course.)
    
I just pushed an implementation for this (along with tests and
documentation) to the git repo.  It will be included in recutils 1.7,
which will be released this week.

Thanks for the idea.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]