mirror of
https://github.com/tomgi/git_stats.git
synced 2024-12-22 13:32:17 +01:00
tree_path bug
Code throughout (repo, commits, etc) references tree_path. We could go and replace that all, but I think it's better to just shift the CLI param Tested this and it works.
This commit is contained in:
parent
6a8078b14a
commit
02f06667d6
2 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ It browses the repository and outputs html page with statistics.
|
||||||
t, [--last-commit-sha=LAST_COMMIT_SHA] # Commit where statistics should stop.
|
t, [--last-commit-sha=LAST_COMMIT_SHA] # Commit where statistics should stop.
|
||||||
# Default: HEAD
|
# Default: HEAD
|
||||||
s, [--silent], [--no-silent] # Silent mode. Don't output anything.
|
s, [--silent], [--no-silent] # Silent mode. Don't output anything.
|
||||||
d, [--tree=TREE] # Tree where statistics should be generated.
|
d, [--tree_path=TREE] # Tree where statistics should be generated.
|
||||||
# Default: .
|
# Default: .
|
||||||
c, [--comment-string=COMMENT_STRING] # The string which is used for comments.
|
c, [--comment-string=COMMENT_STRING] # The string which is used for comments.
|
||||||
# Default: //
|
# Default: //
|
||||||
|
|
|
@ -9,7 +9,7 @@ class GitStats::CLI < Thor
|
||||||
option :first_commit_sha, :aliases => :f, :desc => 'Commit from where statistics should start.'
|
option :first_commit_sha, :aliases => :f, :desc => 'Commit from where statistics should start.'
|
||||||
option :last_commit_sha, :aliases => :t, :default => 'HEAD', :desc => 'Commit where statistics should stop.'
|
option :last_commit_sha, :aliases => :t, :default => 'HEAD', :desc => 'Commit where statistics should stop.'
|
||||||
option :silent, :aliases => :s, :type => :boolean, :desc => 'Silent mode. Don\'t output anything.'
|
option :silent, :aliases => :s, :type => :boolean, :desc => 'Silent mode. Don\'t output anything.'
|
||||||
option :tree, :aliases => :d, :default => '.', :desc => 'Tree where statistics should be generated.'
|
option :tree_path, :aliases => :d, :default => '.', :desc => 'Tree where statistics should be generated.'
|
||||||
option :comment_string, :aliases => :c, :default => '//', :desc => 'The string which is used for comments.'
|
option :comment_string, :aliases => :c, :default => '//', :desc => 'The string which is used for comments.'
|
||||||
|
|
||||||
desc 'generate', 'Generates the statistics of a repository'
|
desc 'generate', 'Generates the statistics of a repository'
|
||||||
|
|
Loading…
Reference in a new issue