summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHomu <homu@barosl.com>2016-08-24 03:58:00 +0900
committerHomu <homu@barosl.com>2016-08-24 03:58:00 +0900
commit857c2d8ad042fa1edb3ec67c32c69eca2a95968d (patch)
treeb26fc523a37b753d77314998e3847af599451c9b
parenta160881e6bf9a8145608ab4183f5d2c592d56875 (diff)
parent11b4178f0e2e8a03e631f18053e96f3356780780 (diff)
downloadbundler-857c2d8ad042fa1edb3ec67c32c69eca2a95968d.tar.gz
Auto merge of #4878 - Zorbash:binstubs-standalone-flag, r=segiddins
Change standalone flag of binstubs cmd to boolean This flag was introduced in #4610, declared with the same code as the flag found in the `install` command. In the case of the `install` command, it makes sense to be an `Array` option, since one can specify groups. This doesn't hold true for the `binstubs` cmd where `--standalone` just stands to signify whether the generated stubs will require the Bundler runtime or not. In the current implementation even passing groups with the flag doesn't have any affect.
-rw-r--r--lib/bundler/cli.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 94a630a9f1..e729cd3bb2 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -255,7 +255,7 @@ module Bundler
"Overwrite existing binstubs if they exist"
method_option "path", :type => :string, :lazy_default => "bin", :banner =>
"Binstub destination directory (default bin)"
- method_option "standalone", :type => :array, :lazy_default => [], :banner =>
+ method_option "standalone", :type => :boolean, :banner =>
"Make binstubs that can work without the Bundler runtime"
def binstubs(*gems)
require "bundler/cli/binstubs"