Skip to content

Commit

Permalink
Update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
frinkelpi committed Oct 22, 2016
1 parent 8d3f397 commit 15f8180
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 19 deletions.
30 changes: 19 additions & 11 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,23 @@ Usage

``fahrplan --help``::

Usage:
fahrplan [options] arguments
usage: fahrplan [--full] [--info] [--debug] [--help] [--version]
[--proxy PROXY]
...

Options:
-f, --full Show full connection info, including changes
-i, --info Verbose output
-d, --debug Debug output
-v, --version Show version number
-h, --help Show this help
-p, --proxy Use proxy for network connections (host:port)
A SBB/CFF/FFS commandline based timetable client.

positional arguments:
request

optional arguments:
--full, -f Show full connection info, including changes
--info, -i Verbose output
--debug, -d Debug output
--help, -h Show this help
--version, -v Show version number
--proxy PROXY, -p PROXY
Use proxy for network connections (host:port)

Arguments:
You can use natural language arguments using the following
Expand All @@ -58,8 +65,9 @@ Usage

Examples:
fahrplan from thun to burgdorf
fahrplan via neuchâtel à lausanne de zurich, helvetiaplatz départ 15:35
fahrplan von bern nach basel an um mitternacht
fahrplan via bern nach basel von zürich, helvetiaplatz ab 15:35
fahrplan de lausanne à vevey arrivée minuit
fahrplan -p proxy.mydomain.ch:8080 de lausanne à vevey arrivée minuit

.. image:: https://raw.github.com/dbrgn/fahrplan/master/screenshot.png
:alt: Screenshot
Expand Down
17 changes: 9 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ commands = nose2 fahrplan

[testenv:py35]
basepython=python3.5

[testenv:cov]
basepython=python2.7
deps=
{[testenv]deps}
cov-core
commands =
nose2 --with-coverage fahrplan

# [testenv:py27]
# commands = python2.7 -m fahrplan.tests.test
# [testenv:py26-r1]
Expand All @@ -32,11 +41,3 @@ basepython=python3.5
# deps=
# {[testenv]deps}
# requests>=2,<3

[testenv:cov]
basepython=python2.7
deps=
{[testenv]deps}
cov-core
commands =
nose2 --with-coverage fahrplan

0 comments on commit 15f8180

Please sign in to comment.