scripts: csv.py: Renamed -L/--list-computed -> -L/--list-eval
I forgot the name and think this is slightly easier to remember, "eval" is quite a bit more common in programmer lingo.
This commit is contained in:
+5
-5
@@ -2742,7 +2742,7 @@ def list_fields(csv_paths, **args):
|
|||||||
w[1], t,
|
w[1], t,
|
||||||
x))
|
x))
|
||||||
|
|
||||||
def list_computed(fields_, results, Result, **args):
|
def list_eval(fields_, results, Result, **args):
|
||||||
# find best type for fields, note this matches compile behavior
|
# find best type for fields, note this matches compile behavior
|
||||||
types_ = {}
|
types_ = {}
|
||||||
for k in fields_:
|
for k in fields_:
|
||||||
@@ -3071,9 +3071,9 @@ def main(csv_paths, *,
|
|||||||
hot=hot,
|
hot=hot,
|
||||||
notes=notes)
|
notes=notes)
|
||||||
|
|
||||||
# list computed?
|
# list eval?
|
||||||
if args.get('list_computed'):
|
if args.get('list_eval'):
|
||||||
return list_computed(fields_, results, Result, **args)
|
return list_eval(fields_, results, Result, **args)
|
||||||
|
|
||||||
# homogenize
|
# homogenize
|
||||||
results = homogenize(Result, results,
|
results = homogenize(Result, results,
|
||||||
@@ -3174,7 +3174,7 @@ if __name__ == "__main__":
|
|||||||
action='store_true',
|
action='store_true',
|
||||||
help="List fields and inferred types before processing.")
|
help="List fields and inferred types before processing.")
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-L', '--list-computed',
|
'-L', '--list-eval',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help="List computed fields and expression dependencies.")
|
help="List computed fields and expression dependencies.")
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|||||||
Reference in New Issue
Block a user