Adding the logic to accept a command line flag for the branch to use to retrieve pages.

This commit is contained in:
Randy Merrill
2011-01-27 11:24:15 -08:00
parent f708dc7002
commit 3c44205be7
4 changed files with 33 additions and 12 deletions
+4
View File
@@ -48,6 +48,10 @@ opts = OptionParser.new do |opts|
opts.on("--page-file-dir [PATH]", "Specify the sub directory for all page files (default: repository root).") do |path|
wiki_options[:page_file_dir] = path
end
opts.on("--branch [BRANCH]", "Specify the repository branch to use (default: working branch).") do |branch|
wiki_options[:branch] = branch
end
end
# Read command line options into `options` hash