From 011eefb9d920a753b22cf5c0025e4d121e2680b2 Mon Sep 17 00:00:00 2001 From: Vitaly Lipatov Date: Wed, 1 Feb 2023 15:24:42 +0300 Subject: [PATCH] ptmax: improve usage text --- ptmax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ptmax.c b/ptmax.c index fc50083..30b4070 100644 --- a/ptmax.c +++ b/ptmax.c @@ -241,7 +241,7 @@ int main(int argc, char* argv[]) unsigned int pt_num=0xBAD; unsigned int new_size=0; if(argc<2 || !strcmp(argv[1],"--help")){ - printf("Usage:\n ptmax /dev/xxxN (f.e. /dev/sda2, /dev/xvdb4, etc)\nptmax /dev/xxx -p N (/dev/sda -p 2)\n"); + printf("Usage:\n ptmax \n ptmax -p \n\nMaximize a partition in a partition table to include it's trailing unallocated space.\n\n - f.e., /dev/sda2, /dev/xvdb4\n - f.e., /dev/sda\n - partition number\n\nExamples:\n # ptmax /dev/sda2\n # ptmax /dev/sda -p 2\n"); exit(0); } if (!strcmp(argv[1],"--version")){