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

 
 

bug #41616: new special field %allowed?

Submitted by:  Karl Berry <karl>
Submitted on:  Sun 16 Feb 2014 11:43:32 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 18 Mar 2014 09:19:32 PM UTCjemarchStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup