Robert Millan schrieb:
The last one sounds like a bug.

Yes, it's from the current *unpatched* grub-probe.

Yes, but does the user know that?

We could tell the user via 'grub-probe --help' that he may pass either a path or a block device as an argument.

Which interface is easier to figure out
for the user, one in which different actions require different parameters,
or one where the same parameters act in completely different way depending
on the file?

There are no different actions! Whether you give a valid path or a block device as an argument, the program behaves exactly the same. It does even behave exactly as before (i.e. unpatched) if given a path. Accepting devices as argument is simply an *added* feature.





_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to