Rename to uncensored-send

This commit is contained in:
2026-09-13 08:57:01 +02:00
parent eaa0a5d1d7
commit 7d0d303c2a
21 changed files with 61 additions and 61 deletions
+3 -3
View File
@@ -52,7 +52,7 @@ func (s *Set) note(long, short string) {
}
}
// envName maps --max-size to SEND_MAX_SIZE.
// envName maps --max-size to UNCENSORED_SEND_MAX_SIZE.
func (s *Set) envName(long string) string {
return s.envPrefix + strings.ToUpper(strings.ReplaceAll(long, "-", "_"))
}
@@ -183,7 +183,7 @@ func (s *Set) checkConvention(args []string) error {
return nil
}
// applyEnv seeds every option from its SEND_-prefixed environment variable.
// applyEnv seeds every option from its UNCENSORED_SEND_-prefixed environment variable.
// Called before parsing so an explicit command-line flag always wins.
func (s *Set) applyEnv() error {
for _, sp := range s.specs {
@@ -214,7 +214,7 @@ func (s *Set) Parse(args []string) error {
// Changed reports whether an option was given on the command line.
//
// Values picked up from the environment do not count: a command that acts only
// on the options you actually typed must not quietly act on a SEND_ variable
// on the options you actually typed must not quietly act on a UNCENSORED_SEND_ variable
// exported for the server.
func (s *Set) Changed(long string) bool {
if s.fromEnv[long] {