Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.37
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby19 /
share /
ri /
1.9.1 /
system /
GetoptLong /
Delete
Unzip
Name
Size
Permission
Date
Action
AmbiguousOption
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
Error
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
InvalidOption
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
MissingArgument
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
NeedlessArgument
[ DIR ]
drwxr-xr-x
2026-05-01 04:24
cdesc-GetoptLong.ri
2.68
KB
-rw-r--r--
2023-07-26 17:26
each-i.ri
688
B
-rw-r--r--
2023-07-26 17:26
each_option-i.ri
236
B
-rw-r--r--
2023-07-26 17:26
error%3f-i.ri
227
B
-rw-r--r--
2023-07-26 17:26
error-i.ri
225
B
-rw-r--r--
2023-07-26 17:26
error_message-i.ri
310
B
-rw-r--r--
2023-07-26 17:26
get-i.ri
641
B
-rw-r--r--
2023-07-26 17:26
get_option-i.ri
232
B
-rw-r--r--
2023-07-26 17:26
new-c.ri
987
B
-rw-r--r--
2023-07-26 17:26
ordering%3d-i.ri
2.33
KB
-rw-r--r--
2023-07-26 17:26
ordering-i.ri
200
B
-rw-r--r--
2023-07-26 17:26
quiet%3f-i.ri
204
B
-rw-r--r--
2023-07-26 17:26
quiet-i.ri
202
B
-rw-r--r--
2023-07-26 17:26
set_error-i.ri
246
B
-rw-r--r--
2023-07-26 17:26
set_options-i.ri
370
B
-rw-r--r--
2023-07-26 17:26
terminate-i.ri
235
B
-rw-r--r--
2023-07-26 17:26
terminated%3f-i.ri
266
B
-rw-r--r--
2023-07-26 17:26
Save
Rename
U:RDoc::NormalClass[iI"GetoptLong:EF@I"Object;Fo:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"OThe GetoptLong class allows you to parse command line options similarly to;TI"Nthe GNU getopt_long() C library call. Note, however, that GetoptLong is a;TI"pure Ruby implementation.;To:RDoc::Markup::BlankLine o; ;[I"KGetoptLong allows for POSIX-style options like <tt>--file</tt> as well;TI".as single letter options like <tt>-f</tt>;T@o; ;[I"KThe empty option <tt>--</tt> (two minus symbols) is used to end option;TI"Lprocessing. This can be particularly important if options have optional;TI"arguments.;T@o; ;[I"'Here is a simple example of usage:;T@o:RDoc::Markup::Verbatim;[;I"require 'getoptlong' ;FI" ;FI"opts = GetoptLong.new( ;FI"4 [ '--help', '-h', GetoptLong::NO_ARGUMENT ], ;FI"< [ '--repeat', '-n', GetoptLong::REQUIRED_ARGUMENT ], ;FI"3 [ '--name', GetoptLong::OPTIONAL_ARGUMENT ] ;FI") ;FI" ;FI"dir = nil ;FI"name = nil ;FI"repetitions = 1 ;FI"opts.each do |opt, arg| ;FI" case opt ;FI" when '--help' ;FI" puts <<-EOF ;FI"hello [OPTION] ... DIR ;FI" ;FI"-h, --help: ;FI" show help ;FI" ;FI"--repeat x, -n x: ;FI" repeat x times ;FI" ;FI"--name [name]: ;FI"A greet user by name, if name not supplied default is John ;FI" ;FI"8DIR: The directory in which to issue the greeting. ;FI" EOF ;FI" when '--repeat' ;FI"" repetitions = arg.to_i ;FI" when '--name' ;FI" if arg == '' ;FI" name = 'John' ;FI" else ;FI" name = arg ;FI" end ;FI" end ;FI" end ;FI" ;FI"if ARGV.length != 1 ;FI"0 puts "Missing dir argument (try --help)" ;FI" exit 0 ;FI" end ;FI" ;FI"dir = ARGV.shift ;FI" ;FI"Dir.chdir(dir) ;FI"for i in (1..repetitions) ;FI" print "Hello" ;FI" if name ;FI" print ", #{name}" ;FI" end ;FI" puts ;FI" end ;Fo; ;[I"Example command line:;T@o;;[I"hello -n 6 --name -- /tmp;F: @fileI"lib/getoptlong.rb;T;0[ [ I" error;FI"R;F:publicF@][ I"error?;F@a; F@][ I" ordering;FI"R;F; F@][ I" quiet;FI"RW;F; F@][ I"quiet?;FI"RW;F; F@][[I"ORDERINGS;Fo;;[o; ;[I"Orderings.;T;0@][I"ARGUMENT_FLAGS;Fo;;[o; ;[I"Argument flags.;T;0@][I"STATUS_TERMINATED;Fo;;[ ;0@][ [[I" class;F[[; [[I"new;F@][:protected[ [:private[ [I" instance;F[[; [[I" each;F@][I"each_option;F@][I"error_message;F@][I"get;F@][I"get_option;F@][I"ordering=;F@][I"set_options;F@][I"terminate;F@][I"terminated?;F@][;[[I"set_error;F@][;[