Add read from pipe
Signed-off-by: Rémi BERTHO <remi.bertho@dalan.fr>
This commit is contained in:
parent
14c28cb2c9
commit
71426f81e1
1 changed files with 2 additions and 2 deletions
4
SSnR.py
4
SSnR.py
|
@ -94,8 +94,8 @@ def main():
|
||||||
string = args["string"]
|
string = args["string"]
|
||||||
is_file = False
|
is_file = False
|
||||||
else:
|
else:
|
||||||
print("Error: You need an input string or file")
|
string = sys.stdin.read()
|
||||||
return -1
|
is_file = False
|
||||||
|
|
||||||
# Get output
|
# Get output
|
||||||
output_files = []
|
output_files = []
|
||||||
|
|
Loading…
Reference in a new issue