Ticket #11075: 0001-Add-examples-to-checkfs-help-output.patch

File 0001-Add-examples-to-checkfs-help-output.patch, 961 bytes (added by jstressman, 10 years ago)

proper git patch for checkfs changes to add examples to help output.

  • src/bin/checkfs.cpp

    From 3e135cc3f4002a3f64af6b912912a39e24eb4d9f Mon Sep 17 00:00:00 2001
    From: Justin Stressman <jstressman@gmail.com>
    Date: Sun, 27 Jul 2014 12:08:47 +0000
    Subject: [PATCH] Add examples to checkfs help output.
    
    ---
     src/bin/checkfs.cpp | 10 +++++++---
     1 file changed, 7 insertions(+), 3 deletions(-)
    
    diff --git a/src/bin/checkfs.cpp b/src/bin/checkfs.cpp
    index 9c63de6..3b94874 100644
    a b usage(FILE* output)  
    2323        "Usage: %s <options> <device|volume name>\n"
    2424        "\n"
    2525        "Options:\n"
    26         "  -h, --help        - print this help text\n"
    27         "  -c, --check-only  - do not make any changes to the file system\n",
    28         kProgramName);
     26        "  -h, --help\t\t- print this help text\n"
     27        "  -c, --check-only\t- do not make any changes to the file system\n"
     28        "\n"
     29        "Examples:\n"
     30        "  %s -c /Haiku\n"
     31        "  %s /dev/disk/ata/0/master/raw\n",
     32        kProgramName, kProgramName, kProgramName);
    2933}
    3034
    3135