updated parsers

main
Calum Andrew Morrell 2023-11-22 13:40:44 +00:00
parent 65ef2d88d9
commit 73907d5f71
2 changed files with 9 additions and 3 deletions

View File

@ -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>

View File

@ -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,8 +20,9 @@ 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')