lib/synvert/cli.rb in synvert-1.0.0 vs lib/synvert/cli.rb in synvert-1.0.1
- old
+ new
@@ -95,10 +95,10 @@
@options[:snippet_name] = name
end
opts.on '--sync', 'sync snippets' do
@options[:command] = 'sync'
end
- opts.on '--execute', 'execute snippet' do |execute_command|
+ opts.on '--execute EXECUTE_COMMAND', 'execute snippet' do |execute_command|
@options[:command] = 'execute'
@options[:execute_command] = execute_command
end
opts.on '-r', '--run SNIPPET_NAME', 'run a snippet with snippet name, e.g. ruby/new_hash_syntax, or remote url, or local file path' do |snippet_name|
@options[:command] = 'run'