From 16cdad7edff4d67a4c2bad307ec5f0424094762a Mon Sep 17 00:00:00 2001 From: Anon Date: Sat, 8 Apr 2023 17:57:50 -0700 Subject: [PATCH] Added -l flag --- src/main.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.py b/src/main.py index e3a6b20..c9b0cd9 100755 --- a/src/main.py +++ b/src/main.py @@ -221,6 +221,7 @@ def main(): parser.add_argument("-k", "--keyfile", help="Keyfile used for decryption") parser.add_argument("-i", "--index", help="Start at index (only matters if profile is set to sequential)", default=0) parser.add_argument("-s", "--state", help="Set comma seperated state (only matters if profile is set to sequential)", default=None) + parser.add_argument("-l", "--list", help="Output profile names", action="store_true") parser.add_argument("remainder", help=argparse.SUPPRESS, nargs=argparse.REMAINDER) arguments = parser.parse_args() @@ -235,6 +236,13 @@ def main(): except ImportError: raise FailedToLoadCfg("Invalid config file: {}".format(arguments.config)) + if arguments.list: + for x in yandere_config.settings_post: + for y in x: + print(y["name"], end=",") + print("") + return 1 + # Flag if the bot is running in debug mode debug_mode = arguments.dry_run or arguments.debug