From 9b5701bc6ff9935c4bdc4961d2de8eb516f40f8c Mon Sep 17 00:00:00 2001 From: eban Date: Sat, 2 Aug 2003 04:21:10 +0000 Subject: * 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 --- lib/un.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3