git: gpt(8): Tweak all commands to print usage with the '-h' option
Aaron LI
aly at crater.dragonflybsd.org
Wed Feb 18 06:32:39 PST 2026
commit ef2e905a25a6f194aa627d23812958928ad5699b
Author: Aaron LI <aly at aaronly.me>
Date: Fri Aug 29 13:38:50 2025 +0800
gpt(8): Tweak all commands to print usage with the '-h' option
Instead of an ugly error:
```
$ gpt recover -h
gpt recover: illegal option -- h
usage: gpt recover device ...
```
It now looks better:
```
$ gpt recover -h
usage: gpt recover device ...
```
Summary of changes:
sbin/gpt/add.c | 3 ++-
sbin/gpt/boot.c | 3 ++-
sbin/gpt/create.c | 6 ++++--
sbin/gpt/destroy.c | 3 ++-
sbin/gpt/expand.c | 22 ++++++++++++++++++----
sbin/gpt/gpt.c | 3 ++-
sbin/gpt/label.c | 3 ++-
sbin/gpt/migrate.c | 3 ++-
sbin/gpt/recover.c | 3 ++-
sbin/gpt/remove.c | 3 ++-
sbin/gpt/show.c | 3 ++-
11 files changed, 40 insertions(+), 15 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ef2e905a25a6f194aa627d23812958928ad5699b
--
DragonFly BSD source repository
More information about the Commits
mailing list