updated help to enable automated documentation

This commit is contained in:
Martin Diehl 2015-05-10 10:56:02 +00:00
parent a03b1ede99
commit c0a9141c8f
2 changed files with 8 additions and 10 deletions

View File

@ -17,9 +17,8 @@ Add grain index based on similitude of crystal lattice orientation.
""", version = scriptID)
parser.add_option('-p', '--positions', dest='pos', \
help = 'coordinate label')
parser.add_option('-p', '--positions', dest='pos', metavar='string',
help = 'coordinate label [%default]')
parser.set_defaults(pos = 'pos')
(options, filenames) = parser.parse_args()
@ -29,7 +28,7 @@ datainfo = { # lis
'label':[]},
}
if options.pos != None: datainfo['vector']['label'] += [options.pos]
datainfo['vector']['label'] += [options.pos]
# ------------------------------------------ setup file handles ---------------------------------------

View File

@ -34,17 +34,16 @@ Create hexahedral voxels around points in an ASCIItable.
""", version = scriptID)
parser.add_option('-p', '--positions', dest='pos', type='string',
help = 'coordinate label')
parser.add_option('-s', '--size', dest='size', type='float', nargs=3,
parser.add_option('-p', '--positions', dest='pos', type='string', metavar = 'string',
help = 'coordinate label [%default]')
parser.add_option('-s', '--size', dest='size', type='float', nargs=3, metavar = 'float float float',
help = 'x,y,z size of voxel')
parser.add_option('-o', '--origin', dest='origin', type='float', nargs=3,
parser.add_option('-o', '--origin', dest='origin', type='float', nargs=3, metavar = 'float float float',
help = 'x,y,z origin of coordinate system')
parser.add_option('-g', '--geom', dest='geom', action='store_true',
help = 'derive geometry from geom-file header information')
parser.set_defaults(pos = 'pos')
parser.set_defaults(origin = [0.0,0.0,0.0])
parser.set_defaults(origin = (0.0,0.0,0.0))
parser.set_defaults(geom = False)
(options, filenames) = parser.parse_args()