Added -z switch to set initial state

This commit is contained in:
Anon 2023-04-09 17:25:06 -07:00
parent de66d617ed
commit 02d829cb3f

View File

@ -222,6 +222,7 @@ def main():
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("-z", "--zfill", help="Set initial state")
parser.add_argument("remainder", help=argparse.SUPPRESS, nargs=argparse.REMAINDER)
arguments = parser.parse_args()
@ -252,6 +253,9 @@ def main():
debug_mode,
)
if arguments.zfill:
yandere.currentProfileIndex = list(map(int, [arguments.zfill]*len(yandere_config.settings_post)))
yandere.currentIndexCount = int(arguments.index)
if arguments.state:
state = arguments.state.split(",")