resolve: Simplify argument parsing

Remove useless code.
resolve: Really fetch all components if --fetch-all is specified

Fix bug interpreting --fetch-all.