Here you will find the api documentation of pycli_tools.
pycli_tools.parsers.get_argparser | Explain here the get_argparser() function .. |
pycli_tools.rawinput.ask_user_yesno | Helper function that wraps python’s read_input() function. |
The pycli_tools module is devided in 2 submodules.
Explain here the get_argparser() function
Warning
If you pass the ‘parents’ keyword argument it will be overwritten by the get_argparser() function.
Helper function that wraps python’s read_input() function.
Use this if your program should rely on simple user input like asking for confirmation to continue.
Possible answers are yes or no. You can also specify the default answer to take if the user provides no input.
Arguments:
- message
- The question you want to display.
- yes_on_enter
- The default action to take when the user provides no input (e.g. just presses [enter]).
- yes
- Letter to use for a positive answer.
- no
- Letter to use for a negative answer.
Returns:
True if the user answers positively, False otherwise.