Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 80

[*.zsh]
indent_size = 4
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,3 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/optparse.

2 changes: 1 addition & 1 deletion misc/rb_optparse.bash
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ _rb_optparse() {
}

rb_optparse () {
[ $# = 0 ] || complete -o default -F _rb_optparse "$@"
[ $# = 0 ] || complete -o default -F _rb_optparse "$@"
}
4 changes: 2 additions & 2 deletions misc/rb_optparse.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ generate-complete-function/ruby/optparse ()
mkdir -p "${ZSH_COMPLETION_DIR-$HOME/.zsh.d/Completion}"
$1 "--*-completion-zsh=${1:t}" >! "${ZSH_COMPLETION_DIR-$HOME/.zsh.d/Completion}/$cmpl"
if [[ $(type -w "$cmpl") == "${cmpl}: function" ]]; then
unfunction "$cmpl"
autoload -U "$cmpl"
unfunction "$cmpl"
autoload -U "$cmpl"
else
compinit "$cmpl"
fi
Expand Down
1 change: 0 additions & 1 deletion test/optparse/test_acceptable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,3 @@ def test_decimal_numeric
end

end