This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail.git
The following commit(s) were added to refs/heads/master by this push: new 0e7e6b1 Simplify args processing 0e7e6b1 is described below commit 0e7e6b1ac99ecf1df8bdc94dbd2691cac41883ec Author: Sebb <s...@apache.org> AuthorDate: Sun May 27 01:07:26 2018 +0100 Simplify args processing Don't use nargs=1 Assign values directly --- tools/list-lists.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/list-lists.py b/tools/list-lists.py index 8fa9678..6ad8951 100755 --- a/tools/list-lists.py +++ b/tools/list-lists.py @@ -24,7 +24,7 @@ from elastic import Elastic dbname=None parser = argparse.ArgumentParser(description='Command line options.') -parser.add_argument('--dbname', dest='dbname', type=str, nargs=1, +parser.add_argument('--dbname', dest='dbname', type=str, help='Override index name') parser.add_argument('--pretty', dest='pretty', action='store_true', help='Convert List IDs to email addresses') @@ -35,8 +35,7 @@ parser.add_argument('--counts', dest='counts', action='store_true', args = parser.parse_args() -if args.dbname: - dbname = args.dbname[0] +dbname = args.dbname then = time.time() -- To stop receiving notification emails like this one, please contact s...@apache.org.