mirror of
https://github.com/libretro/libretro-dat-pull.git
synced 2025-02-18 16:07:32 +00:00
generate-dat-ng ;)
This commit is contained in:
parent
a0b8d0dd7f
commit
24333725b4
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/python2
|
||||
from argparse import ArgumentParser
|
||||
import sys,ast,re
|
||||
|
||||
def main():
|
||||
args = get_arguments()
|
||||
print args
|
||||
|
||||
def get_arguments():
|
||||
parser = ArgumentParser(description='Create dat file from sqlite database')
|
||||
parser.add_argument('--omitnone', dest='cont', action='store_const', const=True, help='If a field is empty don\'t parse it')
|
||||
parser.add_argument('dict', action='append', metavar='structure', help='The dictionary after which the dat gets modeled', nargs="+")
|
||||
parser.add_argument('filename', action='append', metavar='dat file', help='The filename prefix to dump the dicts to')
|
||||
return parser.parse_args()
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
Loading…
x
Reference in New Issue
Block a user