Use input builtin to ask for the map name.

This commit is contained in:
yrriban 2025-12-01 02:35:49 -05:00
parent 1632ef7bbc
commit 57fa261f90

View file

@ -71,7 +71,7 @@ class Text(dcc.doom_base.WadMap):
if map_names is not None: if map_names is not None:
text = map_names.get(f"map{parsed_args.map}") text = map_names.get(f"map{parsed_args.map}")
if text is None: if text is None:
text = sys.stdin.read().rstrip() text = input("Map Name? ")
if not parsed_args.nomap: if not parsed_args.nomap:
text = "MAP{}: {}".format(parsed_args.map, text) text = "MAP{}: {}".format(parsed_args.map, text)
text = "{}\n{}".format(text, parsed_args.demotype) text = "{}\n{}".format(text, parsed_args.demotype)