Skip to content
Permalink
master
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
executable file 36 lines (23 sloc) 822 Bytes
#!/usr/bin/python2
r'''Frobnicates foos into bars
Synopsis:
$ frobnicate --param 5 a.foo > a.bar
Done!
This tool does things in some way. And here I describe just how it does it!
'''
import argparse
def parse_args():
parser = \
argparse.ArgumentParser(description = __doc__,
formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument('--param',
type=float,
default=5,
required=True,
help='Parameter to adjust how the frobnicator works')
parser.add_argument('input',
type=str,
nargs='+',
help='''Inputs to process''')
return parser.parse_args()
args = parse_args()