scripts: csv.py: Fixed missing -F/--hidden-field parsing
For some reason -F/--hidden-field fields weren't being parsed as a CsvExpr, breaking any attempt to use exprs with hidden fields. Probably just broken during a refactor. Fortunately an easy fix.
This commit is contained in:
+1
-1
@@ -2623,7 +2623,7 @@ if __name__ == "__main__":
|
||||
type=lambda x: (
|
||||
lambda k, v=None: (
|
||||
k.strip(),
|
||||
v.strip() if v is not None else None)
|
||||
CsvExpr(v) if v is not None else None)
|
||||
)(*x.split('=', 1)),
|
||||
help="Like -f/--field, but hidden from the table renderer, "
|
||||
"and doesn't affect -f/--field defaults.")
|
||||
|
||||
Reference in New Issue
Block a user