Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 388bc8d1 authored by Jérémie Gaidamour's avatar Jérémie Gaidamour
Browse files

[dev] reference-repo.rb -h

parent 2792b020
No related branches found
No related tags found
No related merge requests found
#!/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
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment