Skip to content

Commit

Permalink
Merge pull request #10 from biosafetylvl5/fix-template-arg-error
Browse files Browse the repository at this point in the history
Add rich tracebacks
  • Loading branch information
biosafetylvl5 authored Sep 17, 2024
2 parents 307dc03 + 2e08b3e commit 87da109
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/brassy/brassy.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ def get_parser():
"--write-yaml-template",
type=str,
help="Write template YAML to provided file."
+ " If no value provided, use current git branch name as file name.",
+ " If folder provided, place template in folder with current "
+ "git branch name as file name.",
nargs="?",
default=argparse.SUPPRESS,
)
Expand Down Expand Up @@ -171,7 +172,8 @@ def exit_on_invalid_arguments(args, parser, console):
return

if "write_yaml_template" in args:
return
if args.write_yaml_template is not None:
return

console.print("[bold red]Invalid arguments.\n")
parser.print_help()
Expand Down

0 comments on commit 87da109

Please sign in to comment.