Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def main():
arg = parse_arg()
kmvz = keymapviz.Keymapviz(arg.keyboard, arg.keymap_c, legends)
keymaps = getattr(kmvz, TYPES[arg.type_])()
output_keymaps(arg.output, keymaps)
if arg.replace:
output_keymap_c(arg.keymap_c.name, kmvz.keymap_c())