scripts: Tweaked -./-p/-P flags in ascii scripts

- -*/--add-char/--chars -> -./--add-char/--chars
- -./--points -> -p/--points
- -!/--points-and-lines -> -P/--points-and-lines

Also fixed an issue in plot.py/Attr where non-list default were failing
to concatenate.
This commit is contained in:
Christopher Haster
2025-03-11 13:21:14 -05:00
parent 5b5745bca9
commit b2646148c1
6 changed files with 13 additions and 13 deletions

View File

@@ -95,7 +95,7 @@ class Attr:
not isinstance(attr, tuple)
or attr[0] in {None, (), ('*',)}
for attr in (attrs or []))):
attrs = defaults + (attrs or [])
attrs = list(defaults) + (attrs or [])
# normalize
self.attrs = []
@@ -1194,7 +1194,7 @@ if __name__ == "__main__":
help="Add a label to use. Can be assigned to a specific "
"function/subsystem. Accepts %% modifiers.")
parser.add_argument(
'-*', '--add-char', '--chars',
'-.', '--add-char', '--chars',
dest='chars',
action='append',
type=lambda x: (