summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick LaMuro <nicklamuro@gmail.com>2017-08-29 11:13:30 -0500
committerNick LaMuro <nicklamuro@gmail.com>2017-08-29 11:13:30 -0500
commit08716199290f069c154c34e017ea8442386557aa (patch)
treeab2163f94082c529151edae9d75a0eb7484c64f6
parent6ce61e7c6060d1d7a45a131031be472aa25e1d7e (diff)
downloadbundler-08716199290f069c154c34e017ea8442386557aa.tar.gz
Convert pristine command desc to long_desc
The default command description for `bundle pristine` was way too long for simple description, and can trail off far beyond when called from `bundle cli_help`. That said, this is perfect info for a `long_desc`, so the current content has been moved there, and the regular desc was a trimmed version of that.
-rw-r--r--lib/bundler/cli.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 69bb5f0ac3..0386bb25ac 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -603,7 +603,12 @@ module Bundler
Issue.new.run
end
- desc "pristine [GEMS...]", "Restores installed gems to pristine condition from files located in the gem cache. Gem installed from a git repository will be issued `git checkout --force`."
+ desc "pristine [GEMS...]", "Restores installed gems to pristine condition"
+ long_desc <<-D
+ Restores installed gems to pristine condition from files located in the
+ gem cache. Gems installed from a git repository will be issued `git
+ checkout --force`.
+ D
def pristine(*gems)
require "bundler/cli/pristine"
Pristine.new(gems).run