better options
This commit is contained in:
parent
87f15f170c
commit
5134f92454
1 changed files with 8 additions and 10 deletions
|
|
@ -398,19 +398,17 @@ if __name__ == "__main__":
|
||||||
import sys
|
import sys
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
usage = """Usage: %prog [options]
|
usage = """%prog [options]
|
||||||
A user interface to monitor existing SSH tunnel that are managed with autossh.
|
A user interface to monitor existing SSH tunnel that are managed with autossh.
|
||||||
|
Called without options, ereshkigal displays a list of tunnels on the standard output."""
|
||||||
Called without options, ereshkigal displays
|
|
||||||
"""
|
|
||||||
parser = OptionParser(usage=usage)
|
parser = OptionParser(usage=usage)
|
||||||
|
|
||||||
parser.add_option("-c", "--curses", dest="curses", default=False,
|
parser.add_option("-c", "--curses", action="store_true", dest="curses", default=False,
|
||||||
help="Start the user interface in text mode")
|
help="start the user interface in text mode")
|
||||||
parser.add_option("-n", "--connections", dest="connections", default=False,
|
parser.add_option("-n", "--connections", action="store_true", dest="connections", default=False,
|
||||||
help="Display only the list of SSH connections related to a tunnel")
|
help="display only SSH connections related to a tunnel")
|
||||||
parser.add_option("-a", "--autossh", dest="autossh", default=False,
|
parser.add_option("-a", "--autossh", action="store_true", dest="autossh", default=False,
|
||||||
help="Display only the list of autossh processes")
|
help="display only the list of autossh processes")
|
||||||
|
|
||||||
(options, args) = parser.parse_args()
|
(options, args) = parser.parse_args()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue