How to pass URL in ruby command line? -


i have written ruby program in takes input url , displays components in it. passed url inside ruby file want pass through ruby command line ruby filename.rb url. how pass argument inside code.

the argv constant holds array contains of arguments passed in on command line. in script, url passed in via argv[0].


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

html - grunt SVG to webfont -

c# - SharpSsh Command Execution -