diff --git a/docs/userguide/account/cmd_show.rst b/docs/userguide/account/cmd_show.rst index 6be91a72..9c5f9171 100644 --- a/docs/userguide/account/cmd_show.rst +++ b/docs/userguide/account/cmd_show.rst @@ -30,4 +30,14 @@ Description Show detailed information about :ref:`cmd_account`: * Active groups and expiration -* Group permissions \ No newline at end of file +* Group permissions + +Options +~~~~~~~ + +.. program:: platformio account show + +.. option:: + --json-output + +Return the output in `JSON `_ format diff --git a/platformio/commands/account.py b/platformio/commands/account.py index 17e50827..1481b1be 100644 --- a/platformio/commands/account.py +++ b/platformio/commands/account.py @@ -62,5 +62,6 @@ def account_forgot(**kwargs): @cli.command("show", short_help="PIO Account information: groups, permissions") -def account_show(): +@click.option("--json-output", is_flag=True) +def account_show(**kwargs): pioplus_call(sys.argv[1:])