Changeset 2468 for neercs/trunk/src/main.c
- Timestamp:
- Jun 20, 2008, 3:25:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/src/main.c
r2466 r2468 64 64 } 65 65 66 void usage(int argc, char **argv) 67 { 68 printf("%s\n", PACKAGE_STRING); 69 printf("Usage : %s [command1] [command2] ... [commandN]\n", argv[0]); 70 printf("Example : %s zsh top \n\n", argv[0]); 71 printf("Options :\n"); 72 printf("\t--pid\t\t-P <pid>\t\tattach <pid>\n"); 73 printf("\t--version\t-v \t\t\tdisplay version and exit\n"); 74 printf("\t--help\t\t-h \t\t\tthis help\n"); 75 } 66 76 67 77 int main(int argc, char **argv) … … 182 192 break; 183 193 case 'h': /* --help */ 184 //usage(argc, argv);194 usage(argc, argv); 185 195 return 0; 186 196 break;
Note: See TracChangeset
for help on using the changeset viewer.