Re: [PATCH 4/4] chrt: do not try to interpret any other option as a PID either

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Op 01-07-2025 om 07:21 schreef Madadi Vineeth Reddy:
On 30/06/25 14:10, Benno Schulenberg wrote:
When doing, for example, `chrt --pid --max`, it would report:

   chrt: invalid PID argument: '--max'


But --max is part of options right?

According to help text,
chrt [options] --pid <priority> <pid>

It should come before --pid right?

Sure.  But the synopses of a command often don't (or even cannot)
fully express all possible arrangements of options and arguments.
So the user ought to be forgiven (when possible) for trying some
unspecified order.

(When I forget the exact invocation of a tool, I normally tack a
--help onto the previous attempt, and this usually prints the help
text, ignoring any other options.  It would be nice if that worked
here too.)

Also, the '--max' is obviously an option, why try to interpret it
as a PID?  Why make the tool obtuser than it needs to be?


Benno

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux