~gpanders/gandi-cli unlisted

c5038dc2b5868e582d1ccdb8b084fabf807b2a21 — Greg Anders 6 months ago d4fa065
Print help if no subcommand given
1 files changed, 6 insertions(+), 1 deletions(-)

M src/gandi/console.py
M src/gandi/console.py => src/gandi/console.py +6 -1
@@ 38,7 38,12 @@ def parse_args() -> argparse.Namespace:
    commands.alias.create_command(subparsers)
    commands.mbox.create_command(subparsers)

    return parser.parse_args()
    args = parser.parse_args()
    if "func" not in args:
        parser.print_help()
        sys.exit(1)

    return args


def setup_logging(args: argparse.Namespace) -> None: