diff options
author | bapt <bapt@FreeBSD.org> | 2015-06-07 15:27:17 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-06-07 15:27:17 +0000 |
commit | 4ca3925ed28f1d1406eb93c5852f1b8bffd9d6cc (patch) | |
tree | 8f44deb97733abdbd4a882cb005061c14c516758 /usr.sbin/pw/pw.c | |
parent | 720254061f1395ebda3e3e2d6ebd2cf0d58f7249 (diff) | |
download | FreeBSD-src-4ca3925ed28f1d1406eb93c5852f1b8bffd9d6cc.zip FreeBSD-src-4ca3925ed28f1d1406eb93c5852f1b8bffd9d6cc.tar.gz |
Handle pretty print (-P) via global pwconf
Diffstat (limited to 'usr.sbin/pw/pw.c')
-rw-r--r-- | usr.sbin/pw/pw.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/pw/pw.c b/usr.sbin/pw/pw.c index 7a86680..22665e9 100644 --- a/usr.sbin/pw/pw.c +++ b/usr.sbin/pw/pw.c @@ -133,6 +133,7 @@ main(int argc, char *argv[]) relocated = nis = false; conf.rootdir[0] = '\0'; conf.dryrun = false; + conf.pretty = false; strlcpy(conf.etcpath, _PATH_PWD, sizeof(conf.etcpath)); LIST_INIT(&arglist); @@ -222,6 +223,9 @@ main(int argc, char *argv[]) case 'N': conf.dryrun = true; break; + case 'P': + conf.pretty = true; + break; case 'Y': nis = true; break; |