df: silently accept -h

Traditional Unix 'df' use -h for human readable units.
I always end up typing 'df -h' so it's frustrating to see the usage there.
This commit is contained in:
François Revol
2015-09-17 00:29:50 +02:00
parent 490dc7aa16
commit 045af160e7
+3
View File
@@ -207,6 +207,9 @@ main(int argc, char **argv)
case 'b':
showBlocks = true;
break;
case 'h':
// human readable units in Unix df
break;
default:
ShowUsage(programName);
}