992件ヒット
[1-100件を表示]
(0.034秒)
ライブラリ
- ビルトイン (396)
-
cgi
/ core (22) - csv (242)
- fileutils (11)
- json (66)
- mkmf (33)
-
net
/ imap (22) - open-uri (22)
- optparse (66)
-
rubygems
/ command (22) -
rubygems
/ dependency _ installer (11) -
rubygems
/ security (22) -
yaml
/ store (19)
クラス
- CGI (22)
- CSV (220)
-
CSV
:: Table (22) -
Encoding
:: Converter (11) -
Gem
:: Command (22) -
Gem
:: DependencyInstaller (11) - IO (154)
-
JSON
:: Parser (11) -
JSON
:: State (22) -
Net
:: IMAP (22) - OptionParser (44)
- Proc (11)
-
RDoc
:: Options (11) -
RubyVM
:: InstructionSequence (66) - String (33)
-
YAML
:: Store (19)
モジュール
- FileUtils (11)
-
Gem
:: Security (22) - JSON (33)
- Kernel (154)
- OpenURI (22)
-
OptionParser
:: Arguable (11)
キーワード
-
DEFAULT
_ OPTIONS (22) -
NEWS for Ruby 2
. 7 . 0 (5) -
OPT
_ TABLE (11) - OptionParser (11)
- [] (11)
-
build
_ self _ signed _ cert (11) - compile (11)
-
compile
_ file (11) -
compile
_ option (11) -
compile
_ option= (11) - encode (33)
- exec (44)
- filter (33)
- foreach (11)
-
from
_ state (11) - generate (11)
-
generate
_ line (11) - getopts (55)
- hash (11)
- header (11)
- instance (22)
- new (74)
- open (44)
-
open
_ uri (22) - optparse (11)
- out (11)
- parse (22)
-
parse
_ line (11) - popen (154)
-
pretty
_ generate (11) -
pretty
_ unparse (11) -
primitive
_ convert (11) - read (11)
- readlines (11)
-
ruby 1
. 8 . 4 feature (11) -
show
_ hash (11) - spawn (33)
- starttls (11)
- system (44)
- table (11)
-
to
_ a (11) -
to
_ csv (11) -
to
_ s (11) -
try
_ do (22) - xsystem (11)
検索結果
先頭5件
-
Gem
:: Security :: OPT -> Hash (18202.0) -
ほとんどのメソッドで使用するデフォルトのオプションを返します。
ほとんどのメソッドで使用するデフォルトのオプションを返します。 -
OptionParser
:: Arguable # getopts(short _ opt , *long _ opt) -> Hash (9463.0) -
指定された short_opt や long_opt に応じて自身をパースし、結果を Hash として返します。
...指定された short_opt や long_opt に応じて自身をパースし、結果を Hash として返します。
コマンドラインに - もしくは -- を指定した場合、それ以降の解析を行ないません。
@param short_opt ショートネームのオプション(-f や -fx)......ときは空文字列を指定します。
オプションが引数をとる場合は直後に ":" を付けます。
@param long_opt ロングネームのオプション(--version や --bufsize=512)を文字列で指定をします。
オプションが引数をと......ise OptionParser::ParseError 自身のパースに失敗した場合、発生します。
実際は OptionParser::ParseError のサブク
ラスの例外になります。
//emlist[t.rb][ruby]{
require 'optparse'
params = ARGV.getopts(... -
OptionParser
# getopts(*opts) -> Hash (9330.0) -
引数をパースした結果を、Hash として返します。
...引数をパースした結果を、Hash として返します。
配列 argv を与えた場合、argv をパースします。そうでない場合は、
default_argv をパースします。
//emlist[][ruby]{
opt = OptionParser.new
params = opt.getopts(ARGV, "ab:", "foo", "bar:")
# params["a"]......ram argv パースしたい配列を指定します。
@param opts 引数を文字列で指定します。
@raise OptionParser::ParseError パースに失敗した場合、発生します。
実際は OptionParser::ParseError のサブク... -
OptionParser
# getopts(argv , *opts) -> Hash (9330.0) -
引数をパースした結果を、Hash として返します。
...引数をパースした結果を、Hash として返します。
配列 argv を与えた場合、argv をパースします。そうでない場合は、
default_argv をパースします。
//emlist[][ruby]{
opt = OptionParser.new
params = opt.getopts(ARGV, "ab:", "foo", "bar:")
# params["a"]......ram argv パースしたい配列を指定します。
@param opts 引数を文字列で指定します。
@raise OptionParser::ParseError パースに失敗した場合、発生します。
実際は OptionParser::ParseError のサブク... -
OptionParser
. getopts(*opts) -> Hash (9318.0) -
引数をパースした結果を、Hash として返します。(self.new.getopts と同じです)
...引数をパースした結果を、Hash として返します。(self.new.getopts と同じです)
@param argv パースしたい配列を指定します。
@param opts 引数を文字列で指定します。
@raise OptionParser::ParseError パースに失敗した場合、発生します。......実際は OptionParser::ParseError のサブク
ラスになります。
@see OptionParser#getopts... -
OptionParser
. getopts(argv , *opts) -> Hash (9318.0) -
引数をパースした結果を、Hash として返します。(self.new.getopts と同じです)
...引数をパースした結果を、Hash として返します。(self.new.getopts と同じです)
@param argv パースしたい配列を指定します。
@param opts 引数を文字列で指定します。
@raise OptionParser::ParseError パースに失敗した場合、発生します。......実際は OptionParser::ParseError のサブク
ラスになります。
@see OptionParser#getopts... -
RDoc
:: Options # show _ hash -> bool (9117.0) -
コマンドライン引数の --show-hash オプションを指定していた場合、true を 返します。そうでない場合は false を返します。
...コマンドライン引数の --show-hash オプションを指定していた場合、true を
返します。そうでない場合は false を返します。... -
Gem
:: Command # merge _ options(new _ options) -> Hash (6301.0) -
与えられたオプションとデフォルトのオプションをマージします。 しかし、新しいオプションに同一のキーがあってもデフォルトのオプションは変更されません。
...オプションとデフォルトのオプションをマージします。
しかし、新しいオプションに同一のキーがあってもデフォルトのオプションは変更されません。
@param new_options 新しいコマンドオプションをハッシュで指定します。... -
optparse (6300.0)
-
コマンドラインのオプションを取り扱うためのライブラリです。
...のライブラリです。
=== チュートリアル
optparse を使う場合、基本的には
(1) OptionParser オブジェクト opt を生成する。
(2) オプションを取り扱うブロックを opt に登録する。
(3) opt.parse(ARGV) でコマンドラインを実際に parse......* optiondef
* optionarg
* longoption
* help
* subcmd
* argv
* hyphen_start_file
====[a:optiondef] オプションの定義
以下はオプション -a, -b を受け付けるコマンドを作成する例です。
//emlist[sample.rb][ruby]{
require 'optparse'
opt = OptionParser.new
opt.on......Aoki.
require 'optparse'
parser = OptionParser.new
parser.on('-i') { puts "-i" }
parser.on('-o') { puts '-o' }
subparsers = Hash.new {|h,k|
$stderr.puts "no such subcommand: #{k}"
exit 1
}
subparsers['add'] = OptionParser.new.on('-i') { puts "add -i" }
subparsers['del'] = OptionParser.new.on... -
RubyVM
:: InstructionSequence . compile _ option -> Hash (6217.0) -
命令シーケンスのコンパイル時のデフォルトの最適化オプションを Hash で返 します。
...ル時のデフォルトの最適化オプションを Hash で返
します。
//emlist[例][ruby]{
require "pp"
pp RubyVM::InstructionSequence.compile_option
# => {:inline_const_cache=>true,
# :peephole_optimization=>true,
# :tailcall_optimization=>false,
# :specialized_instruction=>true,
# :ope......rands_unification=>true,
# :instructions_unification=>false,
# :stack_caching=>false,
# :trace_instruction=>true,
# :frozen_string_literal=>false,
# :debug_frozen_string_literal=>false,
# :coverage_enabled=>true,
# :debug_level=>0}
//}
@see RubyVM::InstructionSequence.compile_option=...