Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Command line arguments parser rewrite and help clarification
Help for dnf commands is now divided into two parts - "General DNF options" and "Command specific options". This commit also prevents mixing options from these two distinct groups together which was previous behavior for argument from mutually exclusive groups (e.g. --best/--nobest). Also the command specific options are printed later - under the general ones, so the user sees them on the screen without need to scroll up. Due to the problems with groups behaviour in python argparse, we need to avoid using "inheritance" in argument definition. Basically the problem is, that when you use parents=[] in ArgumentParser constructor, mutually exclusive groups are forgotten. See https://bugs.python.org/issue16807 https://bugs.python.org/issue25882 https://bugzilla.redhat.com/show_bug.cgi?id=1659328
- Loading branch information