Commit 388bc8d1 authored by Jérémie Gaidamour's avatar Jérémie Gaidamour
Browse files

[dev] reference-repo.rb -h

parent 2792b020
#!/usr/bin/ruby
require 'pp'
require 'optparse'
require 'erb'
require 'fileutils'
require 'pathname'
......@@ -45,6 +46,21 @@ def net_switch_port_lookup(site, node_uid, interface='')
return nil
end
OptionParser.new do |opts|
opts.banner = "Usage: reference-apo.rb"
opts.separator ""
opts.separator "This script generates the reference-api JSON (data/) from the input files (input/)."
opts.separator "It does not have any option."
opts.separator ""
# Print an options summary.
opts.on_tail("-h", "--help", "Show this message") do
puts opts
exit
end
end.parse!
#
# Write grid info
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment