rlo always unless no or blank

This commit is contained in:
ed 2026-07-09 19:07:18 +00:00
parent 85a8cc99ba
commit 29e145f5e4
2 changed files with 4 additions and 3 deletions

View file

@ -1042,7 +1042,7 @@ def get_sects():
.1 = when necessary, append a dot followed by a single digit .1 = when necessary, append a dot followed by a single digit
.1! = counter is always added, even when not necessary .1! = counter is always added, even when not necessary
-3 = a hyphen followed by three-digit counter -3 = a hyphen followed by three-digit counter
(blank) = disable counter; overwrite existing logfile no = disable counter; overwrite existing logfile
""" """
), ),
], ],

View file

@ -233,9 +233,10 @@ class SvcHub(object):
self.lo1 = self.lo2 = "" self.lo1 = self.lo2 = ""
if args.lo: if args.lo:
if "%" in args.lo and "%R" not in args.lo: if "%R" not in args.lo:
args.lo += "%R" args.lo += "%R"
if not args.rlo: if args.rlo in ("", "no"):
args.rlo = ""
args.lo = args.lo.replace("%R", "") args.lo = args.lo.replace("%R", "")
try: try:
self.lo1, self.lo2 = args.lo.split("%R") self.lo1, self.lo2 = args.lo.split("%R")