Revisited `su`.
Created by: goyox86
Details
- Moved cmd line args parsing to
ArgParser
. - All the calls to
panic!
were replaced by calls tofail
. - Revisited synopsis in the docs.
- Using
try
where possible. - Using
Passwd::parse_file
instead of doing it manually. - Handled errors while parsing passwd file.
- Added some constants.