if __name__ == "__main__":
parser = argparse.ArgumentParser(
- description=("Extract username and password from .gitcookies",
- "or from the script used to write .gitcookies file")
+ description=("Extract username and password from .gitcookies"
+ "or from the script used to write .gitcookies file"))
parser.add_argument("input",
- help = ("Path to a .gitcookies file or a file with ",
+ help = ("Path to a .gitcookies file or a file with "
"a similar format"))
parser.add_argument("output", help="Path to the output file")
args = parser.parse_args()
username_password_dict = parse_gitcookies(args.input)
with open(args.output, "w") as output_stream:
for username, password in username_password_dict.items():
- output_stream.write(f"{username}\n{password}\n")
\ No newline at end of file
+ output_stream.write(f"{username}\n{password}\n")