#!/usr/bin/env bash
#-----------------------------------------------------------------------------
# Copyright (C) 2012-2019 British Crown (Met Office) & Contributors.
#
# This file is part of Rose, a framework for meteorological suites.
#
# Rose is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Rose is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Rose. If not, see <http://www.gnu.org/licenses/>.
#-----------------------------------------------------------------------------
# NAME
#     rosie go
#
# SYNOPSIS
#     rosie go [OPTIONS] [...]
#
# DESCRIPTION
#     Launch the Rosie client GTK+ GUI.
#
#     If arguments are specified, rosie go will perform an initial lookup based
#     on the arguments, which can be an address, a query, or search words. See
#     `rosie lookup` for detail.
#
#     Unless an option is used to specify the initial search type the argument
#     is interpreted as follows:
#
#     * A string beginning with "http": an address
#     * A string not beginning with "http": search words
#
#     An address URL may contain shell meta characters, so remember to put it
#     in quotes.
#
#     Search strings may contain SQL wildcard characters. E.g.
#
#     * `%` (percent) is a substitute for zero or more characters.
#     * `_` (underscore) is a substitute for a single character.
#
#     If no argument is specified, rosie go will display a list of all your
#     locally checked out suites.
#
# OPTIONS
#     --address-mode, --url, -A, -U
#         Shorthand for `--lookup-mode=address`.
#     --all-revs
#         Specify whether to search deleted suites and superceded suites.
#     --lookup-mode=MODE
#         Specify the initial lookup mode. `MODE` can be `address`, `query` or
#         `search`.
#     --prefix=PREFIX
#         Specify the name of a Rosie web service to use. This option can be
#         used multiple times.
#     --query, -Q
#         Shorthand for `--lookup-mode=query`.
#     --search, -S
#         Shorthand for `--lookup-mode=search`.
#
# SEE ALSO
#     * `rosie lookup`
#     * `rosie ls`
#-------------------------------------------------------------------------------
exec python2 -m rosie.browser.main "$@"

