Code: Select all
renpy.arguments.register_command('--args', parse_args)
Code: Select all
def parse_args():
parser = argparse.ArgumentParser(False)
parser.add_argument('--arg', dest='args', default=[], action='append',
help='Append an argument to a list that can be accessed as config.args.')
args = parser.parse_args()
config.args = args.args
By the way thanks for everything. You've done a lot of work and made some big improvements on 6.14. It's awesome! And the video works great!
Oh and we are using arguments because we use an external gui to login users to our servers and then use their credentials in the game as well.