]> granicus.if.org Git - procps-ng/commit
top: make command line switch parsing even more robust
authorJim Warner <james.warner@comcast.net>
Mon, 20 Mar 2017 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Wed, 29 Mar 2017 11:07:44 +0000 (22:07 +1100)
commit909b37d755fe22ee75b3115d4d402cf5f70708ae
treec7b0ea185b771c7fe04c3f7ff2bbdae6330ca395
parent90ac0dabf540a8088a90003da2b0efcb38af7f69
top: make command line switch parsing even more robust

This program has always tried to maintain an extermely
robust command line parsing procedure, far more robust
that what's available with the getopt stuff. But, with
the introduction of our first numeric switch it should
have been made even more robust than, in fact, it was.

This commit will now accomplish such a desirable goal.

Reference(s):
. added '1' command line switch
commit 89db82d143d005dcc0b8af1bc1f3b1204c88730a

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c