hrev49646 adds 2 changesets to branch 'master'
old head: 90ec3fc16560e46e4fcaec5af93b19570eb894d6
new head: 045af160e7c6928b187719b2df4f14211f20a6d7
overview:
http://cgit.haiku-os.org/haiku/log/?qt=range&q=045af160e7c6+%5E90ec3fc16560
----------------------------------------------------------------------------
490dc7aa1676: keymap: avoid showing usage twice
045af160e7c6: 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.
[ François Revol <revol@xxxxxxx> ]
----------------------------------------------------------------------------
2 files changed, 4 insertions(+), 1 deletion(-)
src/bin/df.cpp | 3 +++
src/bin/keymap/main.cpp | 2 +-
############################################################################
Commit: 490dc7aa16761765db39315028b96c56e5c3b3dc
URL: http://cgit.haiku-os.org/haiku/commit/?id=490dc7aa1676
Author: François Revol <revol@xxxxxxx>
Date: Wed Sep 16 22:22:13 2015 UTC
keymap: avoid showing usage twice
----------------------------------------------------------------------------
diff --git a/src/bin/keymap/main.cpp b/src/bin/keymap/main.cpp
index ba4e64a..7746d99 100644
--- a/src/bin/keymap/main.cpp
+++ b/src/bin/keymap/main.cpp
@@ -147,7 +147,7 @@ main(int argc, char** argv)
case 'H':
default:
- usage();
+ mode = kUnspecified;
break;
}
}
############################################################################
Revision: hrev49646
Commit: 045af160e7c6928b187719b2df4f14211f20a6d7
URL: http://cgit.haiku-os.org/haiku/commit/?id=045af160e7c6
Author: François Revol <revol@xxxxxxx>
Date: Wed Sep 16 22:29:50 2015 UTC
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.
----------------------------------------------------------------------------
diff --git a/src/bin/df.cpp b/src/bin/df.cpp
index efb6e55..d7e66e9 100644
--- a/src/bin/df.cpp
+++ b/src/bin/df.cpp
@@ -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);
}