Skip to content

Commit

Permalink
Close #57
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-kirienko committed Feb 24, 2023
1 parent 30136e3 commit 5519c83
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions yakut/cmd/call.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ def _validate_request_fields(ctx: click.Context, param: click.Parameter, value:
@click.option(
"--with-metadata/--no-metadata",
"+M/-M",
default=False,
show_default=True,
help="When enabled, the response object is prepended with an extra field named `_meta_`.",
default=not sys.stdout.isatty(),
help="""
When enabled, the response object is prepended with an extra field named `_meta_`.
Enabled by default unless stdout is a tty.
""",
)
@yakut.pass_purser
@yakut.asynchronous()
Expand Down
8 changes: 5 additions & 3 deletions yakut/cmd/subscribe/_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@ def _handle_option_synchronizer_transfer_id(ctx: click.Context, _param: click.Pa
@click.option(
"--with-metadata/--no-metadata",
"+M/-M",
default=False,
show_default=True,
help="When enabled, each message object is prepended with an extra field named `_meta_`.",
default=not sys.stdout.isatty(),
help="""
When enabled, each message object is prepended with an extra field named `_meta_`.
Enabled by default unless stdout is a tty.
""",
)
@click.option(
"--count",
Expand Down

0 comments on commit 5519c83

Please sign in to comment.