bugGNU recutils - Bugs: bug #41616, new special field %allowed?

 
 

bug #41616: new special field %allowed?

Submitter:  Karl Berry <karl>
Submitted:  Sun 16 Feb 2014 11:43:32 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 16 Feb 2014 11:43:32 PM UTC, original submission:  

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.)

thanks,
k

Karl Berry <karl>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jemarch (Updated the item)
  • -email is unavailable- added by karl (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-03-18 jemarch StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code