Ignore:
Timestamp:
Jun 20, 2008, 3:25:34 PM (15 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Cleaned a bit
  • Added help (--help/-h)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/main.c

    r2466 r2468  
    6464}
    6565
     66void 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}
    6676
    6777int main(int argc, char **argv)
     
    182192            break;
    183193        case 'h': /* --help */
    184             //   usage(argc, argv);
     194            usage(argc, argv);
    185195            return 0;
    186196            break;
Note: See TracChangeset for help on using the changeset viewer.