Fix "octoprint config" sub command

This commit is contained in:
Gina Häußge 2017-10-24 12:31:44 +02:00
parent 10fc631700
commit 46bd2ce7e9

View file

@ -9,7 +9,7 @@ import click
import logging
from octoprint import init_settings, FatalStartupError
from octoprint.cli import pass_octoprint_ctx, standard_options, bulk_options, get_ctx_obj_option
from octoprint.cli import standard_options, bulk_options, get_ctx_obj_option
import yaml
import json
@ -70,7 +70,6 @@ def config(ctx):
help="Interpret value as int")
@click.option("--json", "as_json", is_flag=True,
help="Parse value from json")
@pass_octoprint_ctx
@click.pass_context
def set_command(ctx, path, value, as_bool, as_float, as_int, as_json):
"""Sets a config path to the provided value."""
@ -163,7 +162,6 @@ def insert_value_command(ctx, path, index, value, as_json=False):
@click.argument("path", type=click.STRING)
@click.argument("value", type=click.STRING)
@click.option("--json", "as_json", is_flag=True)
@pass_octoprint_ctx
@click.pass_context
def remove_value_command(ctx, path, value, as_json=False):
"""Removes value from list at config path."""