#!/usr/bin/env python"""Prints a string with the given arguments.Usage: arg_string path/to/template.txt arg1=value1 arg2=value2"""from__future__importannotationsfrompathlibimportPathimportfire
[docs]defarg_string(path:Path,**kwargs:str)->None:"""Prints a string with the given arguments."""path=Path(path)withpath.open(encoding="utf-8")asf:template=f.read()print(template.format(**kwargs))