Adding -f option to resolve
Refactoring argument parsing to use subparsers