mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-05 22:31:11 +08:00
Show message when No input data provided
Thank you csvkit developers
This commit is contained in:
parent
c4f21df588
commit
c40c59a21d
@ -35,8 +35,14 @@ module Uplot
|
||||
exit
|
||||
end
|
||||
|
||||
watchman = Thread.new do
|
||||
sleep(1)
|
||||
warn 'No input file or piped data provided. Waiting for standard input:'
|
||||
end
|
||||
|
||||
# Sometimes the input file does not end with a newline code.
|
||||
while (input = Kernel.gets(nil))
|
||||
watchman.kill
|
||||
input.freeze
|
||||
@raw_inputs << input
|
||||
@data = Preprocessing.input(input, delimiter, headers, transpose)
|
||||
|
Loading…
Reference in New Issue
Block a user