#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
############################################################################
#
# MODULE:       r.test.option
# AUTHOR(S):    Vaclav Petras
# PURPOSE:      Test ambiguous options
#
# COPYRIGHT:    (C) 2013 by the GRASS Development Team
#
#               This program is free software under the GNU General Public
#               License (>=v2). Read the file COPYING that comes with GRASS
#               for details.
#
#############################################################################


#%module
#% description: Test ambiguous options
#% keywords: test
#%end
#%option G_OPT_R_ELEV
#%end
#%option
#% key: end_water_level
#% type: double
#% description: Final (maximal) water level
#% required: yes
#%end


import sys

from grass.script import core as gcore


def main():
    options, flags = gcore.parser()

    elevation = options['elevation']
    end_water_level = options['end_water_level']

    print "elevation option was: %s" % elevation
    print "end_water_level option was: %s" % elevation

if __name__ == '__main__':
    sys.exit(main())
