You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
340 B
11 lines
340 B
from opts import *
|
|
import argparse
|
|
parser = argparse.ArgumentParser(prog="ext-open",prefix_chars = "+")
|
|
for opt in prefix:
|
|
parser.add_argument(**opt)
|
|
for ext in exts:
|
|
sub_parser = parser.add_subparser(ext["ext"])
|
|
for opt in ext["opts"]+common:
|
|
sub_parser.add_argument(**opt)
|
|
if name == "__main__":
|
|
args = parser.parse_args()
|