aboutsummaryrefslogtreecommitdiff
path: root/linux-user/i386
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2013-02-14 08:46:43 +0000
committerRiku Voipio <riku.voipio@linaro.org>2013-03-11 14:33:42 +0200
commit63ec54d7b319824df8b60cfe25afdfb607ce3905 (patch)
treea87d997b511ece8f942bab7905342fed0655807e /linux-user/i386
parent0d95fda86b0d69fc4010f6bb37aa4fd38f1addff (diff)
linux-user: Fix layout of usage table to account for option text
The linux-user usage message attempts to line up the columns in its table by calculating the maximum width of any item in them. However for the 'Argument' column it was only accounting for the length of the option switch (eg "-d"), not the additional example text (eg "item[,...]"). This currently has no adverse effects because the widest item in the column happens to be the argumentless "-singlestep" option, but improving the "-d" option help to read "-d item[,...]" exceeds that limit. Fix this by correctly calculating maxarglen as the width of the first column text including a possible option argument, and adjusting its uses to match. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/i386')
0 files changed, 0 insertions, 0 deletions