[haiku-bugs] [Haiku] #11075: [checkfs] add examples to checkfs help / default output

  • From: "jstressman" <trac@xxxxxxxxxxxx>
  • Date: Sun, 27 Jul 2014 08:04:04 -0000

#11075: [checkfs] add examples to checkfs help / default output
------------------------+------------------------------
 Reporter:  jstressman  |        Owner:  nobody
     Type:  bug         |       Status:  new
 Priority:  normal      |    Milestone:  R1
Component:  - General   |      Version:  R1/Development
 Keywords:              |   Blocked By:
 Blocking:              |  Has a Patch:  0
 Platform:  All         |
------------------------+------------------------------
 I found myself wishing checkfs had some examples in the help/default
 output to give me an idea exactly what it wanted for the given parameters,
 so I wrote a little patch to give 2 examples. One for each of the 2 ways
 you can specify which device or volume you wish to check.

 These are based on the code from r47509

 The original output looks like this;

 {{{
 Usage: checkfs <options> <device|volume name>

 Options:
   -h, --help        - print this help text
   -c, --check-only  - do not make any changes to the file system
 }}}

 I added 2 examples below that to show what we're looking for...

 {{{
 Usage: checkfs <options> <device|volume name>

 Options:
   -h, --help        - print this help text
   -c, --check-only  - do not make any changes to the file system

 Examples:
   checkfs -c /Haiku
   checkfs /dev/disk/ata/0/master/raw
 }}}

 I'm attaching the patch.

--
Ticket URL: <https://dev.haiku-os.org/ticket/11075>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: