You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
option:lon,help: "The venue's longitude",type: :float
% mix venue -v add 'Temple of Boom' --lat 53.8020657 --lon -1.5319708
No argument provided for 'lon'
% mix venue -v add 'Temple of Boom' --lat 53.8020657 --lon '-1.5319708'
No argument provided for 'lon'
Full script:
defmoduleBandTracker.VenuedouseExCLI.DSL,mix_task: :venuename"BandTracker.Venue"description"Venue operations"option:verbose,count: true,aliases: [:v]command:adddoaliases[:a]description"Add a new venue"argument:name,help: "The venue's name"option:lat,help: "The venue's latitude",type: :floatoption:lon,help: "The venue's longitude",type: :floatruncontextdoifcontext.verbose>0doIO.puts("Adding new venue...")endname=context[:name]lat=context[:lat]lon=context[:lon]IO.write("Name: #{name}, latitude: #{lat}, longitude: #{lon}")endendend
The text was updated successfully, but these errors were encountered:
Full script:
The text was updated successfully, but these errors were encountered: