From 7de4525c9d5fb4a1de7df39b343bea7d8020ee5d Mon Sep 17 00:00:00 2001 From: isaak Date: Thu, 22 Feb 2024 21:36:41 -0700 Subject: [PATCH] Remove "Targets" lingo from UI to be more clear. --- CliFunction.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CliFunction.py b/CliFunction.py index b85ddab..d85de8b 100644 --- a/CliFunction.py +++ b/CliFunction.py @@ -1,4 +1,5 @@ import inspect +import os import sys import re @@ -131,7 +132,7 @@ def generate_method_kwargs(self, *, args: [str], function) -> dict: class Targets: """holds functions to be exposed over CLI""" def __init__(self): - self.headingName = "Targets" + self.headingName = os.path.basename(sys.argv[0]) self.targets = [] # These are not in a subdirectory self.parser = DefaultArgumentParser()