Create a custom converter for the geometry param. Improve help for backend.
parent
2b852a9077
commit
322ed6c73f
|
@ -321,8 +321,8 @@ def parse_args():
|
||||||
help=('direction to face when drawing (north,'
|
help=('direction to face when drawing (north,'
|
||||||
' south, east or west will draw a'
|
' south, east or west will draw a'
|
||||||
' cross-section)'))
|
' cross-section)'))
|
||||||
ap.add_argument('--geometry', type=str, default='',
|
ap.add_argument('--geometry', type=geometry_to_ints, default=None,
|
||||||
nargs='?', action='store',
|
action='store',
|
||||||
help=('Specify a region in X:Y+W+H format.'))
|
help=('Specify a region in X:Y+W+H format.'))
|
||||||
# ^ handle hyphen as negative number not option
|
# ^ handle hyphen as negative number not option
|
||||||
# See:
|
# See:
|
||||||
|
@ -340,8 +340,8 @@ def parse_args():
|
||||||
'or "default:stone 128 128 128")'))
|
'or "default:stone 128 128 128")'))
|
||||||
ap.add_argument('--backend', type=str,
|
ap.add_argument('--backend', type=str,
|
||||||
choices=('leveldb', 'sqlite3'), default='leveldb',
|
choices=('leveldb', 'sqlite3'), default='leveldb',
|
||||||
help=('accepted for compatibility but'
|
help=('manually specify leveldb or sqlite3'
|
||||||
' NOT YET IMPLEMENTED in this version'))
|
' (others are NOT YET IMPLEMENTED)'))
|
||||||
ap.add_argument('--fog', type=float, metavar=('FOGSTRENGTH'),
|
ap.add_argument('--fog', type=float, metavar=('FOGSTRENGTH'),
|
||||||
default=0.0, help=('use fog strength of'
|
default=0.0, help=('use fog strength of'
|
||||||
' FOGSTRENGTH (0.0 by'
|
' FOGSTRENGTH (0.0 by'
|
||||||
|
|
Loading…
Reference in New Issue