Compare commits

..

No commits in common. "8cc9574072d398a6ccfabe6be2410f290ba98e2f" and "65ef2d88d9898e6c59157f1b4e6827bc6d73986b" have entirely different histories.

2 changed files with 4 additions and 10 deletions

View File

@ -1,7 +1,4 @@
<?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>

View File

@ -3,9 +3,7 @@ import argparse
def main():
parser = argparse.ArgumentParser(prog='dgcm',
# usage='dgcm [OPTIONS]...',
description='The Dazed Gerbil Connection Manager')
parser = argparse.ArgumentParser(prog='dgcm')
command_group = parser.add_argument_group('Command options')
command_group.add_argument('-a', '--add', action='store_true', help='add a new connection')
@ -20,11 +18,10 @@ 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')
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('-v', '--verbose', action='count', default=0, help='increase output verbosity')
parser.add_argument('-q', '--quiet', action='store_true', help='disable output')
parser.add_argument('connection', action='store_false', help='shortname of the connection to use')
# parser.add_argument('connection', help='shortname of the connection to use')
args = parser.parse_args()