首页 > 解决方案 > Python Click Option Backspace

问题描述

I'm using a few @click.option() statements in my CLI program.

When the program runs and the user enters in a value, and the backspace key is pressed, it does not process the backspace input as a backspace and outputs raw characters in the input field instead.

I've gone through the Click package documentation and searched online, but I've not come across anything useful.

Is anyone aware of a way to get the backspace to work as expected in the event that the user needs to correct their input before hitting Enter?

Thanks.

标签: pythonpython-click

解决方案


推荐阅读