N
Newb Newb
hi i m using optparse.
in that for copying i have implemented like below
opts.on('-r', '--recursive RECURSIVE',
"specify for recursive copy" ) do | r|
options.recursive = true
end
opts.on('-o', '--overwrite OVERWRITE',
"specify to copy files overwriting the previous ones" ) do | o|
options.overwrite = true
end
if i use -r it does recursive copy without deleteing existing folders.
and if i use -o it does overwritting of given files..
is it possible to use both command at once...
if so ...pls advice on this regard...
pls help
thank you..
in that for copying i have implemented like below
opts.on('-r', '--recursive RECURSIVE',
"specify for recursive copy" ) do | r|
options.recursive = true
end
opts.on('-o', '--overwrite OVERWRITE',
"specify to copy files overwriting the previous ones" ) do | o|
options.overwrite = true
end
if i use -r it does recursive copy without deleteing existing folders.
and if i use -o it does overwritting of given files..
is it possible to use both command at once...
if so ...pls advice on this regard...
pls help
thank you..