Permalink
Browse files

Help message (oops, std::cout added)

  • Loading branch information...
1 parent be5e458 commit f085cbd9e55497fe0306b534173ec81e05ce0e07 @jasonm23 committed Apr 18, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 SleepDisplay.m
View
@@ -17,6 +17,7 @@
#import <Foundation/Foundation.h>
#import <IOKit/IOKitLib.h>
+#include <iostream>
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
@@ -32,11 +33,11 @@ int main (int argc, const char * argv[]) {
if([arg isEqualToString:@"-h"] || [arg isEqualToString:@"==help"])
{
- << "usage: SleepWake [-w]\n"
- << "\n"
- << "Without options, sleeps the display (not system sleep)\n"
- << "use with the -w (--wake) option to wake\n"
- << "\n"
+ std::cout << "usage: SleepWake [-w]\n"
+ std::cout << "\n"
+ std::cout << "Without options, sleeps the display (not system sleep)\n"
+ std::cout << "use with the -w (--wake) option to wake\n"
+ std::cout << "\n"
}
}

0 comments on commit f085cbd

Please sign in to comment.