summaryrefslogtreecommitdiff
path: root/lib/un.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-27 02:06:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-27 02:06:08 +0000
commit3d5cfe9a3211de22c959ae39ecabb61f230c52b4 (patch)
treea6d937619e6acef0aef0197310182d310fcfd1c3 /lib/un.rb
parent285066dd0bc256fc6b197ac6e55c51b39a574924 (diff)
* lib/un.rb (wait_writable): added help message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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|