diff options
author | Rodolfo García Peñas <kix@kix.es> | 2012-09-15 22:23:21 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-09-15 22:23:21 +0200 |
commit | f58e33494ffb3a221fc3ac6c313ecc8a5d9e7f65 (patch) | |
tree | 0d7a23c82a5b945c4c436235007dcc161fafd219 | |
parent | a9383c103fb615a4fe0207a63cd5fc6b24b36f7d (diff) | |
download | suspend-utils-f58e33494ffb3a221fc3ac6c313ecc8a5d9e7f65.tar.gz |
s2ram: Added command line option -? (revert 1a6e6d9)
The -? command line option is used by getopt and getopt_long if the
option is not recognized. For more information, see getopt and
getopt_long manpages.
This commit reverts the previous commit 1a6e6d9 which removed this
option.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
-rw-r--r-- | s2ram-main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/s2ram-main.c b/s2ram-main.c index 1e5a5d8..b430054 100644 --- a/s2ram-main.c +++ b/s2ram-main.c @@ -74,6 +74,10 @@ int main(int argc, char *argv[]) else printf("This kernel doesn't have KMS support.\n"); exit(ret); + case '?': + usage("s2ram", options, optstring); + exit(1); + break; default: s2ram_add_flag(i, optarg); break; |