Added -z switch to set initial state
This commit is contained in:
parent
de66d617ed
commit
02d829cb3f
@ -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()
|
||||
|
||||
@ -251,6 +252,9 @@ def main():
|
||||
arguments.keyfile,
|
||||
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:
|
||||
|
Reference in New Issue
Block a user