[parted-devel] print all & --list

Otavio Salvador otavio at debian.org
Sat Dec 9 14:35:56 CET 2006


"Debarshi Ray" <debarshi.ray at gmail.com> writes:

>> I'm not sure I understand the patch fully though; why did you
>> remove the print_all functionality and replace it with print_list?
>
> I just renamed the function, since although we have 'print list' and
> 'print all' doing the same thing, we have '--list' instead of '--all'
> as the command line switch similar to 'fdisk -l'. Hence I gave
> preference to 'list' instead of 'all' to ensure consistency.
>
>> print_all method prints _detailed_ information for _all_ devices; while
>> print_list method should print a small not-so-detailed of the devices
>> availble (like fdisk -l; discussed before).
>
> 'print list' and 'print all' are supposed to do the same thing. This
> is because '--list/-l' are supposed to be a direct interface to 'print
> all'. However the '--list/-l' switch and 'print all' commands seem to
> be inconsistent. Hence it was decided (on this thread) to have 'print
> list' and 'print all' do the same thing, and not have a '--all/-a'
> switch since that would be too much redundancy and the '-a' switch
> might be needed somewhere else in future.
>
> Leslie, I hope I am correct. :-)

I think you are correct here. Does someone see this differently?

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: otavio at debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
 you the whole house."



More information about the parted-devel mailing list