No subject


Thu Aug 20 06:46:28 UTC 2009


changes the meaning of the corresponding command (i.e. part-uuid without
an argument means GET uuid, with an argument it means SET uuid)
should preferably be avoided.

It is much better to have distinct commands for each operation.
Think about when combining several commands on the command line,
for instance

     $ parted /dev/sda part-uuid part-type 1

Does this mean to try to set the UUID to "part-type"? Compare to

     $ parted /dev/sda set-type 1 00
     $ parted /dev/sda set-part-uuid 89ec2a20-ab3a-4105-b5e8-b141666fbd0c
     $ parted /dev/sda print-type 1
     $ parted /dev/sda print-part-uuid

where each command is clear and simple to understand. The "set-" prefix
does probably not add so much value, but I would strongly prefer to
add "print-" to all the get commands and make them distinct from the set
commands.

BR H=C3=A5kon L=C3=B8vdal



More information about the parted-devel mailing list