Tcl Source Code

View Ticket
Login
Ticket UUID: f0f876c141139439586fa28de774889055df7edb
Title: Inconsistent terminology in error messages: option vs. switch
Type: Bug Version: 39da5e7464431971934e73e300f4d1c8a8cd72a6
Submitter: andy Created on: 2014-06-13 00:51:36
Subsystem: 45. Parsing and Eval Assigned To: dkf
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2014-06-17 14:30:41
Resolution: Fixed Closed By: dkf
    Closed on: 2014-06-17 14:30:41
Description:
Sometimes it's a bad switch, other times it's a bad option.  Here's one example of the inconsistency:

% regsub -help a b
bad switch "-help": must be -all, -nocase, -expanded, -line, -linestop, -lineanchor, -start, or --
% switch -asdf a b
bad option "-asdf": must be -exact, -glob, -indexvar, -matchvar, -nocase, -regexp, or --

Other kinds of inconsistencies exist, but I want to address only one at a time.