btrfsprogs/0103-add-advanced-use-of-help-to-help-message.patch
Dirk Mueller a0e284e535 - add support for currently available kernel features:
- add scrub subcommand
  - scan /proc/partitions by default (or use --all-devices for all)
  - mkfs fixes and improvements
  - documentation fixes

- update from git:
  - add btrfs-select-super utility
  - add btrfs-label utility
  - allow mixed data+metadata (option --mixed)
  - allow populating new filesystem with files (option --rootdir)
  - allow discard support in mkfs
  - lzo support
  - deprecate 'btrfsctl' 'btrfs-vol' 'btrfs-show'
  - other bugfixes and documentation improvements

OBS-URL: https://build.opensuse.org/package/show/filesystems/btrfsprogs?expand=0&rev=104
2011-07-13 14:48:36 +00:00

34 lines
862 B
Diff

From 346e20eedde773e9d7b00bd1ea5bc8ecda3236ee Mon Sep 17 00:00:00 2001
From: Hubert Kario <kario@wit.edu.pl>
Date: Sun, 23 Jan 2011 13:39:36 +0100
Subject: [PATCH 03/28] add advanced use of --help to help message
explain how to use
btrfs <cmd> --help
command in help message
Signed-off-by: Hubert Kario <kario@wit.edu.pl>
Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
---
btrfs.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/btrfs.c b/btrfs.c
index 4cd4210..8e0975e 100644
--- a/btrfs.c
+++ b/btrfs.c
@@ -146,6 +146,8 @@ static void help(char *np)
print_help(np, cp);
printf("\n\t%s help|--help|-h\n\t\tShow the help.\n",np);
+ printf("\n\t%s <cmd> --help\n\t\tShow detailed help for a command or\n\t\t"
+ "subset of commands.\n",np);
printf("\n%s\n", BTRFS_BUILD_VERSION);
}
--
1.7.5.2.353.g5df3e