title: why am i getting attribute error "AttributeError: 'Values' object has no attribute 'interface'"
body: <p>Traceback (most recent call last):
    File "hello.py", line 12, in 
      interface = options.interface
  AttributeError: 'Values' object has no attribute 'interface'</p>
  
  <pre><code>import subprocess
  import optparse
  
  parser = optparse.OptionParser()
  
  parser.add_option("-i", "--interface", dest=" interface ", help=" Interface to change its MAC address ")
  
  parser.add_option("-m", "--mac", dest=" mac ", help=" new mac address ")
  
  (options, arguments) = parser.parse_args()
  
  interface = options.interface
  mac = options.mac
  
  print("[+] Changing mac address for " + interface + " to " + mac)
  
  subprocess.call(["ifconfig ", interface, " down"])
  
  subprocess.call(["ifconfig ", interface, " hw", "ether", mac])
  
  subprocess.call(["ifconfig ", interface, " up"])
  </code></pre>
  
  <p>Note:- i am using virtualBox to run this program.</p>