From fdc5eb1db82fc3e2a815d726a9e39f542bc9e47f Mon Sep 17 00:00:00 2001 From: Kristian Knarvik Date: Sat, 29 Aug 2020 12:17:09 +0200 Subject: [PATCH] Updates readme to account for changes in behavior --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 733165e..2f6c5af 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,11 @@ # Jar-Updater -A simple cli program used to replace a program's .jar file with another. +A simple cli program used to replace a program's .jar file with another. This program is necessary because a .jar cannot +replace itself because it's locked while it's running (on some operating systems). ## Usage The software must be given one argument which is the download URL for the new file. -The second argument (optional) is the program to be run after the new file has been downloaded (usually the program calling this software). +The second argument (optional) is whether to run the downloaded file if the download was successful. The third argument is the new file name of the downloaded file. This is used when the file name in the URL might change. The fourth argument is the amount of seconds to wait before starting the download. This gives the calling software time to exit, making its executable readable.