Skip to content

Commit

Permalink
Merge pull request fastlane#4331 from serluca/feature/show-default-value
Browse files Browse the repository at this point in the history
Show the default value when running fastlane action [tool_name]
  • Loading branch information
mfurtak committed Apr 22, 2016
2 parents 467662a + e0720c2 commit f982ad9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fastlane/lib/fastlane/documentation/actions_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def self.show_details(filter: nil)
if options
puts Terminal::Table.new(
title: filter.green,
headings: ['Key', 'Description', 'Env Var'],
headings: ['Key', 'Description', 'Env Var', 'Default'],
rows: options
)
required_count = action.available_options.count do |o|
Expand Down Expand Up @@ -149,7 +149,7 @@ def self.parse_options(options, fill_all = true)
key_name = (current.optional ? " " : "* ") + current.key.to_s
description = (current.description || '') + (current.default_value ? " (default: '#{current.default_value}')" : "")

rows << [key_name.yellow, description, current.env_name]
rows << [key_name.yellow, description, current.env_name, current.default_value]

elsif current.kind_of? Array
# Legacy actions that don't use the new config manager
Expand Down

0 comments on commit f982ad9

Please sign in to comment.