Skip to content
Permalink
142ee350c5
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
23 lines (19 sloc) 579 Bytes
# parses arguments using argparse
# @return args list of all parameters
def parse_arguments():
parser = argparse.ArgumentParser()
parser.add_argument("meme", help="Path to meme file")
parser.add_argument("output", help="")
args = parser.parse_args()
return args
def main():
args = parse_arguments()
out = open(args.output, "w+")
with open(args.meme) as f:
for line in f:
if 'MOTIF 2' in line:
break
out.write(line)
if __name__ == "__main__":
import argparse
main()