update help toc correctly show program name

This commit is contained in:
2023-11-03 15:46:14 -04:00
parent cce20aa267
commit c609216830

View File

@@ -312,7 +312,7 @@ def select_pool(pools, wording = "edit"):
if __name__ == '__main__':
# Build and parse arguments
parser = argparse.ArgumentParser(
usage="%prog [options]",
usage="{} [options]".format(os.path.basename(__file__)),
description="Run Truenas pool unlock operation. This will unlock encrypted pools on truenas.")
parser.add_argument(
"-c",