------_extPart_001_01C62108.C3EEA992
Content-Type: text/plain

Hello,

I am a newbie to Ruby. However I have used python a little bit.
I like to convert my python scripts to ruby. One of them is a command line
script taking input and switches.
Is there something equivalent in ruby?


"""
Generate something
Usage:      python xyz.py [options] [source] [destination] 
Options:   
	 -h, --help     show help 
Examples:   xyz.py input.csv output.html   
""" 

def main(argv):
    """Main Entry Point """
    try:
        opts, args  etopt.getopt(argv, "h", ["help"])
    except getopt.GetoptError:
        usage()
        sys.exit(2)
    
    for opt, arg in opts:         if opt in ("-h", "--help"):
            usage()             sys.exit()

    try:
        source  ys.argv[1]
        global destination 
        destination  ys.argv[2]
    except:
        usage()
        sys.exit(2)
        
    seleniumHtmlGenerator(source)

    

if __name__ "__main__":
    main(sys.argv[1:])



















------_extPart_001_01C62108.C3EEA992--