Changes between Initial Version and Version 3 of Ticket #33892
- Timestamp:
- Aug 4, 2022, 2:13:35 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33892
- Property Resolution → duplicate
- Property Status new → closed
- Property Summary Management commands with flags using action="store_false" create possible inverted boolean flags in call_command → Management commands with flags using "store_false" create inverted boolean flags in call_command
-
Ticket #33892 – Description
initial v3 1 In any management command which parses a flag using the action `store_false` it has an unexpected side effect when calling the management command from the `call_command` function. When `call_command` parses the arg it won't be taken into account the action and can create weird inversions of the intent of the boolean. 1 In any management command which parses a flag using the action `store_false` it has an unexpected side effect when calling the management command from the `call_command` function. When `call_command` parses the arg it won't be taken into account the action and can create weird inversions of the intent of the boolean. **This is only relevant to options inputs via keyword arguments, string args work as excpected.** 2 2 3 3 **example:**