Re: [PATCH v2] chrt: Make priority optional for policies that don't use it

Benno Schulenberg <[email protected]>
Newsgroups org.kernel.vger.util-linux
Message-ID <[email protected]>
Op 18-06-2025 om 11:51 schreef Madadi Vineeth Reddy:
> On 18/06/25 14:48, Karel Zak wrote:
>> On Wed, Jun 18, 2025 at 10:18:29AM +0200, Benno Schulenberg wrote:
>>>
>>>    Get policy:
>>>     chrt [options] -p <pid>
>>
>> I really don't like the use of "-p." We should use "--pid" everywhere
>> (in --help, man page, and examples).
> 
> I can spin off a separate patch to consistently use --pid instead of -p
> in the help text, man page, and examples.

It should also drop the "[options]" part from the above:

     Get policy:
       chrt --pid <pid>

As Karel says, specifying an option like --other or --fifo
should always be understood as a modification request, not
as an info request.


Benno
OpenPGP_signature.asc (application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEEFo5vQpe/16ea/USWUUu+Lrjhlh8FAmhSsSEFAwAAAAAACgkQUUu+Lrjhlh+T
+RAAhSkEm7YbzrFl9sX3JESEZNPIDvZVioNilw+nZG+FwLqhmYvqmcp1fqZu8NKpdOI2GrXsKoWv
/x35AfC++66uYYwGZVvxIXcZiG8cTNHC8CNjD1va5e/dmXRuSmAW51qqljDdFPYtjxiIBqFVwUnD
ox5ox8kZcdZ1CLP0iVpaEeZU+ASL55D9VzferEJJUNUm5FHX6JXsb4O2QrsOR2wVs3p8nB21PvIO
DIDmNxRlH9zyD9UU4XOGlvY6KHSSOg9r6BrnHC8DkjXMWcnuHzsn5PQ664LEENEZWZkAg5y7lros
oFqxSVtNms7DqYwcKC0Cd4MCvw7Qb1HJ0mLw+qXQNGQRY7EAJhDGCJnUeyPhMk2kDtmmvV20vJpA
tUtTptT8Ko0bDVU5UbtsfhnbL66Yb2r+rjFgfGAKTDsQclqQeIs1VR6NSfs0w3KwkhNAQgy6jG/E
3QN6amtiMDc+/LoDQvOzWXRuJYTlrANz+oQbvXg81IdujJbpTGP/T0OnMO5p9D4tawsbg62jlmEu
aU09E/fuV3YWQc6HPZT53HokUuTXjM9UOQyL+z80n/Rk+QKtRA7v8Z81roQkG8ns7fDlwWFvZ4AW
8rypiOTOnEgzVVA7rSENUMYGXEM9PP1rdsnpKhQNodXssGCZ3/njishcYyVzc3Wi4SZHU4Vs9fV6
jbk=
=jMJT
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.