Taking default_map
as source of default values into account
#54
Labels
enhancement
New feature or request
default_map
as source of default values into account
#54
When I specify the
default
parameter in an option, trogon considers this value in the TUI. But when I pass a default_map as part of the context_settings (like shown in the click docs here and here) the option doesn't get prefilled.This behaviour might be misleading because an existing default_map overwrites an options default value. Thus, the application actually runs with a different option value than trogon suggested.
Consider the following code:
The
runserver
sub-command actually runs with port 5000 because of thedefault_map
. But trogon prefills the textbox in the TUI with port 8000, which is wrong.The text was updated successfully, but these errors were encountered: