Adds a missing feature that was present in the old CLI, and matches our plans to have similar flags for nix hash convert and nix hash path.
nix hash convert
nix hash path