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:
@@ -207,6 +207,9 @@ main(int argc, char **argv)
|
|||||||
case 'b':
|
case 'b':
|
||||||
showBlocks = true;
|
showBlocks = true;
|
||||||
break;
|
break;
|
||||||
|
case 'h':
|
||||||
|
// human readable units in Unix df
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
ShowUsage(programName);
|
ShowUsage(programName);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user