Skip to content

Commit

Permalink
Add indent flag
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Nov 12, 2024
1 parent 7a00a60 commit fd4a86e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/higlass_schema/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
console = Console()


def export(_: argparse.Namespace) -> None:
print(schema_json())
def export(args: argparse.Namespace) -> None:
print(schema_json(indent=args.indent))


def check(args: argparse.Namespace) -> None:
Expand Down Expand Up @@ -44,6 +44,7 @@ def main():

# export
parser_export = subparsers.add_parser("export")
parser_export.add_argument("--indent", type=int)
parser_export.set_defaults(func=export)

# check
Expand Down

0 comments on commit fd4a86e

Please sign in to comment.