All pastes #408062 Raw Edit

Miscellany

public text v1 · immutable
#408062 ·published 2007-03-24 15:32 UTC
rendered paste body
			# --n#
			set switch [lindex [split $args] 0]
			# if switch is not --n<number> then return
			if {![regexp -- {--n[0-9]{1,}} $switch]} {return "--n10"}
			# take the number after --n
			set num [string range $switch 3 end]
			set rest [join [lrange [split $args] 1 end]]
			regsub -all -- {n}	$num	""	num