diff mbox

[nfs-utils,RFC,15/15] mountstats: Update the help output

Message ID 1415206872-864-16-git-send-email-smayhew@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Scott Mayhew Nov. 5, 2014, 5:01 p.m. UTC
Updated the help output for mounstats, ms-iostat, and ms-nfsstat to make
them constistent.

Signed-off-by: Scott Mayhew <smayhew@redhat.com>
---
 tools/mountstats/mountstats.py | 43 ++++++++++++++++++++++++++++++++++++------
 1 file changed, 37 insertions(+), 6 deletions(-)
diff mbox

Patch

diff --git a/tools/mountstats/mountstats.py b/tools/mountstats/mountstats.py
index f9f5eac..50dcc10 100755
--- a/tools/mountstats/mountstats.py
+++ b/tools/mountstats/mountstats.py
@@ -627,11 +627,25 @@  def print_mountstats_help(name):
     print()
     print(' Display NFS client per-mount statistics.')
     print()
-    print('  --version    display the version of this command')
-    print('  --file <file> read stats from \'file\' instead of /proc/self/mountstats')
-    print('  --nfs        display only the NFS statistics')
-    print('  --rpc        display only the RPC statistics')
-    print('  --since <file> shows difference between current stats and those in \'file\'')
+    print('Options:')
+    print()
+    print('  -n, --nfs')
+    print('                Display only the NFS statistics')
+    print()
+    print('  -r, --rpc')
+    print('                Display only the RPC statistics')
+    print()
+    print('  -f <file>, --file <file>')
+    print('                Read stats from \'file\' instead of /proc/self/mountstats')
+    print()
+    print('  -S <file>, --since <file>')
+    print('                Shows difference between current stats and those in \'file\'')
+    print()
+    print('  -h, --help')
+    print('                Show the help message')
+    print()
+    print('  -v, --version')
+    print('                Display the version of this command')
     print()
 
 def print_mountstats(stats, nfs_only, rpc_only, raw):
@@ -748,7 +762,8 @@  def print_nfsstat_help(name):
     print('                Shows difference between current stats and those in \'file\'')
     print()
     print('  -h, --help')
-    print('                What you just did')
+    print('                Show the help message')
+    print()
 
 def nfsstat_command():
     """nfsstat-like command for NFS mount points
@@ -810,6 +825,22 @@  def print_iostat_help(name):
     print(' mount points will be displayed.  Otherwise, all NFS mount points on the')
     print(' client are listed.')
     print()
+    print('Options:')
+    print()
+    print('  -f <file>, --file <file>')
+    print('                Read stats from \'file\' instead of /proc/self/mountstats.')
+    print('                This may not be combined with the <interval> and <count> parameters.')
+    print()
+    print('  -S <file>, --since <file>')
+    print('                Shows difference between current stats and those in \'file\'')
+    print('                This may not be combined with the <interval> and <count> parameters.')
+    print()
+    print('  -h, --help')
+    print('                Show the help message')
+    print()
+    print('  -v, --version')
+    print('                Display the version of this command')
+    print()
 
 def print_iostat_summary(old, new, devices, time):
     for device in devices: