This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author venkata suresh gummadillli
Recipients venkata suresh gummadillli
Date 2015-06-10.19:42:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1433965328.43.0.612100341004.issue24428@psf.upfronthosting.co.za>
In-reply-to
Content
[@outsidetried ~]$ python validate_json_adj.py 
[@outsidetried ~]$ python validate_json_adj.py -h
validate_json.py -i <input_file>
[@outsidetried ~]$ python validate_json_adj.py -i hello.txt
Input JSON file provided for verification: hello.txt
[@outsidetried ~]$ python validate_json_adj.py -i firstfile
Input JSON file provided for verification: firstfile
[@outsidetried ~]$ python validate_json_adj.py -i <hello.txt>
-bash: syntax error near unexpected token `newline'
[sureshgv@outsidetried ~]$ python validate_json_adj.py -i ??
Input JSON file provided for verification: ci
[@outsidetried ~]$ python validate_json_adj.py -i ???
Input JSON file provided for verification: bf1
[@outsidetried ~]$ python validate_json_adj.py -i $#@%
Input JSON file provided for verification: 0@%
[@outsidetried ~]$ cat validate_json_adj.py 
#!/usr/bin/python
"""
"""

import sys,getopt


"""
 """

def main(argv):
   inputfile = ''
   try:
      opts, args = getopt.getopt(argv,"hi:",["input_file="])
   except getopt.GetoptError:
      print 'validate_json.py -i <input_file>'
      sys.exit(2)
   for opt, arg in opts:
      if opt == '-h':
         print 'validate_json.py -i <input_file>'
         sys.exit()
      elif opt in ("-i", "--input_file"):
         inputfile = arg
   	 print 'Input JSON file provided for verification:', inputfile 
if __name__ == "__main__":
   main(sys.argv[1:])
History
Date User Action Args
2015-06-10 19:42:08venkata suresh gummadilllisetrecipients: + venkata suresh gummadillli
2015-06-10 19:42:08venkata suresh gummadilllisetmessageid: <1433965328.43.0.612100341004.issue24428@psf.upfronthosting.co.za>
2015-06-10 19:42:08venkata suresh gummadilllilinkissue24428 messages
2015-06-10 19:42:07venkata suresh gummadilllicreate