Add help info to CLI options

Change-Id: I268246f12040ca09047b9776dd4233c907743cb0
This commit is contained in:
Omar Shykhkerimov 2016-08-30 16:36:46 +03:00
parent f71a030508
commit de3472da30
1 changed files with 5 additions and 3 deletions

View File

@ -25,9 +25,11 @@ import yaql.legacy
def main():
p = optparse.OptionParser()
p.add_option('--data', '-d')
p.add_option('-t', action='store_true', dest='tokens')
p.add_option('--legacy', action='store_true', dest='legacy')
p.add_option('--data', '-d', help="input JSON file")
p.add_option('--tokens', '-t', action='store_true', dest='tokens',
help="print lexical tokens info")
p.add_option('--legacy', action='store_true', dest='legacy',
help="enable legacy v0.2 compatibility mode")
options, arguments = p.parse_args()
if options.data: