Changeset 2468 for neercs


Ignore:
Timestamp:
Jun 20, 2008, 3:25:34 PM (12 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Cleaned a bit
  • Added help (--help/-h)
Location:
neercs/trunk/src
Files:
3 edited

Legend:

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

    r2467 r2468  
    297297    *resp = aresp;
    298298    return (PAM_SUCCESS);
    299 
    300299}
    301300
     
    390389            (s->orig_y * r) +
    391390            ((s->orig_h/2) - s->h/2);
    392 
    393391    }
    394392
  • 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;
  • neercs/trunk/src/neercs.h

    r2463 r2468  
    115115
    116116void version(void);
     117void usage(int argc, char **argv);
    117118
    118119
Note: See TracChangeset for help on using the changeset viewer.