Skip to content

Instantly share code, notes, and snippets.

@dougcooper
dougcooper / key_value_changer.py
Created June 1, 2018 10:26
Python script for changing the value of a key in an INI style file
#!/usr/bin/python2
import argparse
import os
def main():
parser = argparse.ArgumentParser()
parser.add_argument("key", help="key to modify",type=str)
parser.add_argument("value", help="new value",type=str)
parser.add_argument("delimeter",help="character used as a delimiter between key and value",type=str)