Compare commits
2 Commits
65ef2d88d9
...
8cc9574072
| Author | SHA1 | Date |
|---|---|---|
|
|
8cc9574072 | |
|
|
73907d5f71 |
|
|
@ -1,4 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Black">
|
||||
<option name="sdkName" value="Poetry (dgcm)" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Poetry (dgcm)" project-jdk-type="Python SDK" />
|
||||
</project>
|
||||
11
dgcm/main.py
11
dgcm/main.py
|
|
@ -3,7 +3,9 @@ import argparse
|
|||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(prog='dgcm')
|
||||
parser = argparse.ArgumentParser(prog='dgcm',
|
||||
# usage='dgcm [OPTIONS]...',
|
||||
description='The Dazed Gerbil Connection Manager')
|
||||
|
||||
command_group = parser.add_argument_group('Command options')
|
||||
command_group.add_argument('-a', '--add', action='store_true', help='add a new connection')
|
||||
|
|
@ -18,10 +20,11 @@ def main():
|
|||
connection_group.add_argument('-P', '--port', help='specify the port if non-standard')
|
||||
connection_group.add_argument('-S', '--shortname', help='provide a short name for faster access')
|
||||
|
||||
parser.add_argument('-v', '--verbose', action='count', default=0, help='increase output verbosity')
|
||||
parser.add_argument('-q', '--quiet', action='store_true', help='disable output')
|
||||
mutually_exclusive_group = parser.add_mutually_exclusive_group()
|
||||
mutually_exclusive_group.add_argument('-v', '--verbose', action='count', default=0, help='increase output verbosity')
|
||||
mutually_exclusive_group.add_argument('-q', '--quiet', action='store_true', help='disable output')
|
||||
|
||||
# parser.add_argument('connection', help='shortname of the connection to use')
|
||||
parser.add_argument('connection', action='store_false', help='shortname of the connection to use')
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue