Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. for opt , arg in opts:
  2. if opt in ("-f"):
  3. for line, lines in enumerate(fileinput.input(args)):
  4. if line == 2:
  5. print(lines)
  6.  
  7. elif opt in ("-h"):
  8. print("it is just a help")
  9.  
  10. elif opt in ("-d"):
  11. print ( "Debug is On" )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement