summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--edquota.c5
-rw-r--r--quota.c3
-rw-r--r--setquota.c4
3 files changed, 7 insertions, 5 deletions
diff --git a/edquota.c b/edquota.c
index b340d13..c0b2f76 100644
--- a/edquota.c
+++ b/edquota.c
@@ -128,9 +128,9 @@ int parse_options(int argc, char **argv)
quotatype = USRQUOTA;
#if defined(RPC_SETQUOTA)
- while ((ret = getopt_long(argc, argv, "ugrmntTVp:F:f:", long_opts, NULL)) != -1) {
+ while ((ret = getopt_long(argc, argv, "ughrmntTVp:F:f:", long_opts, NULL)) != -1) {
#else
- while ((ret = getopt_long(argc, argv, "ugtTVp:F:f:", long_opts, NULL)) != -1) {
+ while ((ret = getopt_long(argc, argv, "ughtTVp:F:f:", long_opts, NULL)) != -1) {
#endif
switch (ret) {
case 'p':
@@ -170,6 +170,7 @@ int parse_options(int argc, char **argv)
case 'V':
version();
exit(0);
+ case 'h':
default:
usage();
}
diff --git a/quota.c b/quota.c
index e9d1bb3..5a2c23f 100644
--- a/quota.c
+++ b/quota.c
@@ -325,7 +325,7 @@ int main(int argc, char **argv)
progname = basename(argv[0]);
flags |= FL_SHOW_DEVICE;
- while ((ret = getopt_long(argc, argv, "guqvsVliQF:wfApm", long_opts, NULL)) != -1) {
+ while ((ret = getopt_long(argc, argv, "hguqvsVliQF:wfApm", long_opts, NULL)) != -1) {
switch (ret) {
case 'g':
flags |= FL_GROUP;
@@ -382,6 +382,7 @@ int main(int argc, char **argv)
case 'V':
version();
exit(0);
+ case 'h':
default:
usage();
}
diff --git a/setquota.c b/setquota.c
index 1020d8f..5d2734b 100644
--- a/setquota.c
+++ b/setquota.c
@@ -110,9 +110,9 @@ static void parse_options(int argcnt, char **argstr)
char *protoname = NULL;
#ifdef RPC_SETQUOTA
- char *opts = "gp:urmVF:taTbc";
+ char *opts = "ghp:urmVF:taTbc";
#else
- char *opts = "gp:uVF:taTbc";
+ char *opts = "ghp:uVF:taTbc";
#endif
struct option long_opts[] = {
{ "user", 0, NULL, 'u' },