Skave R. wrote:
I’ve got two questions:
Is it possible to run a ruby script with options? i.e.:
Yes - they appear in the ARGV array, and can be parsed with one of a
number of tools, eg OptionParser which is in the standard library.
(how) is it possible to change the output of a script to a static
output, so you only update a part of it? Like the progressbar of wget,
You need to output ANSI terminal control characters, which you probably
also want to do through a library - ProgressBar is a simple tool if you
actually want a progress bar, otherwise you might like to look at the
Ruby ncurses bindings for more advanced applications.