Print this page
5558 pargs is missing -l option in usage

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/ptools/pargs/pargs.c
          +++ new/usr/src/cmd/ptools/pargs/pargs.c
↓ open down ↓ 1323 lines elided ↑ open up ↑
1324 1324          if (lflag && (xflag || eflag)) {
1325 1325                  (void) fprintf(stderr, "-l is incompatible with -x and -e\n");
1326 1326                  errflg++;
1327 1327          }
1328 1328  
1329 1329          argc -= optind;
1330 1330          argv += optind;
1331 1331  
1332 1332          if (errflg || argc <= 0) {
1333 1333                  (void) fprintf(stderr,
1334      -                    "usage:  %s [-acexF] { pid | core } ...\n"
     1334 +                    "usage:  %s [-aceFlx] { pid | core } ...\n"
1335 1335                      "  (show process arguments and environment)\n"
1336 1336                      "  -a: show process arguments (default)\n"
1337 1337                      "  -c: interpret characters as 7-bit ascii regardless of "
1338 1338                      "locale\n"
1339 1339                      "  -e: show environment variables\n"
     1340 +                    "  -F: force grabbing of the target process\n"
1340 1341                      "  -l: display arguments as command line\n"
1341      -                    "  -x: show aux vector entries\n"
1342      -                    "  -F: force grabbing of the target process\n", command);
     1342 +                    "  -x: show aux vector entries\n", command);
1343 1343                  return (2);
1344 1344          }
1345 1345  
1346 1346          while (argc-- > 0) {
1347 1347                  char *arg;
1348 1348                  int gret, r;
1349 1349                  psinfo_t psinfo;
1350 1350                  char *psargs_conv;
1351 1351                  struct ps_prochandle *Pr;
1352 1352                  pargs_data_t datap;
↓ open down ↓ 209 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX