-
Sub-task
-
Resolution: Done-Errata
-
Minor
-
None
-
None
-
False
-
False
-
-
1
-
2023-R4, 2024-R1
-
Testable
The parent issue RHELC-1131 has the label that triggered autocreation of this subtask to track the relative story point estimation for the integration test part of the issue.
The parent issue description at the time of creation of this issue was:
Convert2rhel performs a check to see if the user is root since the analysis and conversion both require root permissions. Additionally, the application lock that is new in 1.4 also requires root permissions.
However, the check for root is happening before we parse the command line. This means that we cannot print the –help message unless the user is root. Other, similar programs will print the help message for an unprivileged user (Example: yum --help) so this should be considered a bug.
Acceptance Criteria
- As an unprivileged user, type{
Unknown macro: {convert2rhel --help}
}
- Convert2rhel prints its help message and exits.
- Implementation note: The code for this should not be placed in initialize.py as initialize.py exists for things which need to happen before we import certain other modules. We need to keep that code simple and only put things that are really necessary there.