aboutsummaryrefslogtreecommitdiffstats
path: root/lib/un.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/un.rb')
-rw-r--r--lib/un.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/un.rb b/lib/un.rb
index 4512c83181..ee40d36d62 100644
--- a/lib/un.rb
+++ b/lib/un.rb
@@ -19,6 +19,7 @@
# ruby -run -e install -- [OPTION] SOURCE DEST
# ruby -run -e chmod -- [OPTION] OCTAL-MODE FILE
# ruby -run -e touch -- [OPTION] FILE
+# ruby -run -e wait_writable -- [OPTION] FILE
# ruby -run -e help [COMMAND]
require "fileutils"
@@ -218,6 +219,10 @@ end
#
# ruby -run -e wait_writable -- [OPTION] FILE
#
+# -n RETRY count to retry
+# -w SEC each wait time in seconds
+# -v verbose
+#
def wait_writable
setup("n:w:v") do |argv, options|