Explorar o código

Remove --all option from 'docs:package' command

Ref #25.
Thibaut Courouble %!s(int64=10) %!d(string=hai) anos
pai
achega
b04dba012e
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      lib/tasks/docs.thor

+ 2 - 3
lib/tasks/docs.thor

@@ -102,11 +102,10 @@ class DocsCLI < Thor
     handle_doc_not_found_error(error)
   end
 
-  desc 'package (<doc> <doc@version>... | --all)', 'Package documentations'
-  option :all, type: :boolean
+  desc 'package <doc> <doc@version>...', 'Package documentations'
   def package(*names)
     require 'unix_utils'
-    docs = options[:all] ? Docs.all : find_docs(names)
+    docs = find_docs(names)
     assert_docs(docs)
     docs.each(&method(:package_doc))
     puts 'Done'