lib/calamum/runner.rb in calamum-1.0.1 vs lib/calamum/runner.rb in calamum-1.0.2
- old
+ new
@@ -52,9 +52,16 @@
:short => "-p PATH",
:long => "--path PATH",
:description => "The distination path for the generated doc directory",
:default => ENV['HOME']
+ option :sort,
+ :short => "-s",
+ :long => "--sort",
+ :description => "Sort the resources alphabetically",
+ :boolean => true,
+ :default => false
+
def run
load_options
Calamum::Config.merge!(config)
api_definition = load_definition_file
@definition = Calamum::DefinitionParser.new(api_definition)