summaryrefslogtreecommitdiff
path: root/lib/un.rb
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-02 04:21:10 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-02 04:21:10 +0000
commit9b5701bc6ff9935c4bdc4961d2de8eb516f40f8c (patch)
tree4870d88ec40a084b48756409feb26e4eafd89d6c /lib/un.rb
parenta138367a973b53672d6f46fd4ee25f6749ade1ec (diff)
downloadruby-9b5701bc6ff9935c4bdc4961d2de8eb516f40f8c.tar.gz
* lib/un.rb: add each descriptions for the -v option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/un.rb')
-rw-r--r--lib/un.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/un.rb b/lib/un.rb
index 8f630801d8..c06c67532c 100644
--- a/lib/un.rb
+++ b/lib/un.rb
@@ -57,6 +57,7 @@ end
#
# -p preserve file attributes if possible
# -r copy recursively
+# -v verbose
#
def cp
setup("pr") do |argv, options, opt|
@@ -75,6 +76,7 @@ end
#
# -s make symbolic links instead of hard links
# -f remove existing destination files
+# -v verbose
#
def ln
setup("sf") do |argv, options, opt|
@@ -91,6 +93,8 @@ end
#
# ruby -run -e mv SOURCE DEST
#
+# -v verbose
+#
def mv
setup do |argv, options|
dest = argv.pop
@@ -106,6 +110,7 @@ end
#
# -f ignore nonexistent files
# -r remove the contents of directories recursively
+# -v verbose
#
def rm
setup("fr") do |argv, options, opt|
@@ -121,6 +126,7 @@ end
# ruby -run -e mkdir -- [OPTION] DIR
#
# -p no error if existing, make parent directories as needed
+# -v verbose
#
def mkdir
setup("p") do |argv, options, opt|
@@ -135,6 +141,8 @@ end
#
# ruby -run -e rmdir DIR
#
+# -v verbose
+#
def rmdir
setup do |argv, options|
FileUtils.rmdir argv, options
@@ -149,6 +157,7 @@ end
# -p apply access/modification times of SOURCE files to
# corresponding destination files
# -m set permission mode (as in chmod), instead of 0755
+# -v verbose
#
def install
setup("pm:") do |argv, options, opt|
@@ -164,6 +173,8 @@ end
#
# ruby -run -e chmod OCTAL-MODE FILE
#
+# -v verbose
+#
def chmod
setup do |argv, options|
mode = argv.shift.oct
@@ -176,6 +187,8 @@ end
#
# ruby -run -e touch FILE
#
+# -v verbose
+#
def touch
setup do |argv, options|
FileUtils.touch argv, options