gerrit: get user account information

`gerrit account` now prints the information of the user account.

BUG=chromium:434076
TEST=`chromite/bin/gerrit account`

Change-Id: Ied6be5e8dad682b6ab6cd945c8cf6f12eb8d622b
Reviewed-on: https://chromium-review.googlesource.com/230337
Tested-by: Yu-Ju Hong <yjhong@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Yu-Ju Hong <yjhong@chromium.org>
diff --git a/scripts/gerrit.py b/scripts/gerrit.py
index 19bfbf5..5c4291d 100644
--- a/scripts/gerrit.py
+++ b/scripts/gerrit.py
@@ -13,6 +13,7 @@
 
 import inspect
 import os
+import pprint
 import re
 
 from chromite.cbuildbot import constants
@@ -329,6 +330,12 @@
     helper.DeleteDraft(cl, dryrun=opts.dryrun)
 
 
+def UserActAccount(opts):
+  """Get user account information."""
+  helper, _ = GetGerrit(opts)
+  pprint.PrettyPrinter().pprint(helper.GetAccount())
+
+
 def main(argv):
   # Locate actions that are exposed to the user.  All functions that start
   # with "UserAct" are fair game.