diff --git a/ESP32-Console/main/commands.h b/ESP32-Console/main/commands.h index c817e9fa1..615fdb826 100644 --- a/ESP32-Console/main/commands.h +++ b/ESP32-Console/main/commands.h @@ -143,9 +143,9 @@ static int exec_gpio_cmd (int argc, char **argv) { } static void register_gpio (void) { - gpio_args.gpio = arg_int0(NULL, "gpio", "", "Specifies GPIO to be used"); - gpio_args.mode = arg_str0(NULL, "mode", "", "Sets the mode of GPIO."); - gpio_args.level = arg_int0(NULL, "level", "<1|0>", "Sets the logical level of GPIO."); + gpio_args.gpio = arg_int0("p", "gpio", "", "Specifies GPIO to be used"); + gpio_args.mode = arg_str0("m", "mode", "", "Sets the mode of GPIO."); + gpio_args.level = arg_int0("l", "level", "<1|0>", "Sets the logical level of GPIO."); const esp_console_cmd_t gpio_cmd = { .command = "GPIO", .help = "Sets/Gets GPIOs",