Project

General

Profile

Actions

Bug #4152

closed

optparseのzsh compsysでrspecの補完が出来ない

Added by znz (Kazuhiro NISHIYAMA) over 13 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 1.9.3dev (2010-12-12 trunk 30182) [x86_64-linux]
Backport:
[ruby-dev:42754]

Description

=begin
説明部分のエスケープが足りていなくて、補完が出来ないコマンドがあります。

% 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
%
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0