Coverage for dryxPython.command_line : 87%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
version: 1 formatters: file_style: format: '* %(asctime)s - %(name)s - %(levelname)s (%(filename)s > %(funcName)s > %(lineno)d) - %(message)s ' datefmt: '%Y/%m/%d %H:%M:%S' console_style: format: '* %(asctime)s - %(levelname)s: %(filename)s:%(funcName)s:%(lineno)d > %(message)s' datefmt: '%H:%M:%S' html_style: format: '<div id="row" class="%(levelname)s"><span class="date">%(asctime)s</span> <span class="label">file:</span><span class="filename">%(filename)s</span> <span class="label">method:</span><span class="funcName">%(funcName)s</span> <span class="label">line#:</span><span class="lineno">%(lineno)d</span> <span class="pathname">%(pathname)s</span> <div class="right"><span class="message">%(message)s</span><span class="levelname">%(levelname)s</span></div></div>' datefmt: '%Y-%m-%d <span class= "time">%H:%M <span class= "seconds">%Ss</span></span>' handlers: console: class: logging.StreamHandler level: DEBUG formatter: console_style stream: ext://sys.stdout root: level: DEBUG handlers: [console]"""
## LAST MODIFIED : August 17, 2013 ## CREATED : August 17, 2013 ## AUTHOR : DRYX argv=None): """print the help for python module
**Key Arguments:** - ``argv`` -- arguments for the function """ ################ > IMPORTS ################ ## STANDARD LIB ## ## THIRD PARTY ## ## LOCAL APPLICATION ##
## VARIABLES ##
else: print "argv:", argv
pathToModuleFile = argv[1]
basename = os.path.basename(pathToModuleFile).replace(".py","") print basename
return None
## LAST MODIFIED : August 20, 2013 ## CREATED : August 20, 2013 ## AUTHOR : DRYX """ Print a fits file headers to stout
Usage: dft_print_fits_header <path-to-fits-file> dft_print_fits_header -p <path-to-fits-file> dft_print_fits_header -h
-h, --help show this help message -p, --pydict print as python dictionary """ ################ > IMPORTS ################ ## STANDARD LIB ## ## THIRD PARTY ## ## LOCAL APPLICATION ##
## SETUP AN EMPTY LOGGER
clArgs = docopt(dft_print_fits_header.__doc__)
log, pathToFitsFile=pathToFitsFile )
# from . import joke
# def main(): # print joke() |