From 051b78396476c978c9ba04c0a159da3d87a289f0 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 5 Dec 2020 21:18:54 -0800 Subject: [PATCH] Remove support for input(arg=None). If the caller doesn't want to specify an arg, they should be using go(). --- voussoirkit/pipeable.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/voussoirkit/pipeable.py b/voussoirkit/pipeable.py index 13f11ee..9de065b 100644 --- a/voussoirkit/pipeable.py +++ b/voussoirkit/pipeable.py @@ -68,23 +68,16 @@ def multi_line_input(prompt=None): break def input( - arg=None, + arg, *, input_prompt=None, read_files=False, skip_blank=False, strip=False, ): - if arg is not None: - arg_lower = arg.lower() + arg_lower = arg.lower() - if arg is None: - if IN_PIPE: - lines = multi_line_input() - else: - raise ValueError(arg) - - elif arg_lower in INPUT_STRINGS: + if arg_lower in INPUT_STRINGS: lines = multi_line_input(prompt=input_prompt) if not IN_PIPE: # Wait until the user finishes all their lines before continuing.