Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 19871ea29a863b133ee996029b32616ed020228c58118dd6c823d802baf8cee7
Ticket: a31caff05780aabdd20a8468673340435862dbf9
encoding command does not allow -strict to be used with -failindex
User & Date: pooryorick on 2023-01-20 14:02:14
Changes

  1. icomment:
    The proposed fix, "Allow "-strict" immediately before or after "-failindex
    var"", has some disadvantages:
    
      It requires a new constraint on encoding names that wasn't there before.
    
      It requires prohibiting "-nocomplain" in when "-failindex" is given.
      Otherwise, the argument parser breaks.  This seems stem from a desire to make
      minimal changes to the existing argument parser, which is already not so
      complex.
    
      By very-specifically ordering the allowed options, it closes the door on
      future evolution of [encoding] options, which I believe will be needed.
    
    Reworking the parser to accept options in any order, as I have done in
    [6e15578c88cf5750], is not so hard.  Why not choose either usint "--" or making
    "encoding" mandatory, and proceed that way?
    
  2. login: "pooryorick"
  3. mimetype: "text/x-fossil-wiki"