From: Kazuhiro NISHIYAMA Date: 2010-12-12T21:22:19+09:00 Subject: [ruby-dev:42754] [Ruby 1.9-Bug#4152][Open] optparseのzsh compsysでrspecの補完が出来ない Bug #4152: optparseのzsh compsysでrspecの補完が出来ない http://redmine.ruby-lang.org/issues/show/4152 起票者: Kazuhiro NISHIYAMA ステータス: Open, 優先度: Normal ruby -v: ruby 1.9.3dev (2010-12-12 trunk 30182) [x86_64-linux] 説明部分のエスケープが足りていなくて、補完が出来ないコマンドがあります。 % rspec-trunk [TAB] _arguments:comparguments:303: invalid option definition: -f[Choose a formatter [p]rogress (default - dots) [d]ocumentation (group and example names) [h]tml [t]extmate custom formatter class name] % rspec-trunk --help Usage: rspec [options] [files or directories] -b, --backtrace Enable full backtrace -c, --[no-]color, --[no-]colour Enable color in the output -d, --debug Enable debugging -e, --example PATTERN Run examples whose full descriptions match this pattern (PATTERN is compiled into a Ruby regular expression) -f, --format FORMATTER Choose a formatter [p]rogress (default - dots) [d]ocumentation (group and example names) [h]tml [t]extmate custom formatter class name -o, --out FILE output to a file instead of STDOUT -I DIRECTORY specify $LOAD_PATH directory (may be used more than once) -l, --line_number LINE Specify the line number of a single example to run -p, --profile Enable profiling of examples with output of the top 10 slowest examples -r, --require PATH Require a file -v, --version Show version -X, --drb Run examples via DRb --configure COMMAND Generate configuration files --drb-port [PORT] Port to connect to on the DRb server --tty --fail-fast Use the fail_fast option to tell RSpec to abort the run on first failure. -t, --tag TAG[:VALUE] Run examples with the specified tag To exclude examples, add ~ before the tag (e.g. ~slow) (TAG is always converted to a symbol) -h, --help You're looking at it. % rspec-trunk --version 2.2.1 % ---------------------------------------- http://redmine.ruby-lang.org