From 00aec59017d99db6ca5216e4ca2bb44786c0ed91 Mon Sep 17 00:00:00 2001 From: Jiří Pinkava <j-pi@seznam.cz> Date: Sat, 17 Sep 2016 15:43:26 +0200 Subject: cleanup: remove nargs=1 from ArgumentParser --- gr-utils/python/utils/gr_plot_const | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gr-utils/python/utils/gr_plot_const') diff --git a/gr-utils/python/utils/gr_plot_const b/gr-utils/python/utils/gr_plot_const index 28f6a540da..653a2539b4 100755 --- a/gr-utils/python/utils/gr_plot_const +++ b/gr-utils/python/utils/gr_plot_const @@ -230,11 +230,11 @@ def main(): help="Specify where to start in the file [default=%(default)r]") parser.add_argument("-R", "--sample-rate", type=float, default=1.0, help="Set the sampler rate of the data [default=%(default)r]") - parser.add_argument("file", metavar="FILE", nargs=1, + parser.add_argument("file", metavar="FILE", help="Input file with complex samples") args = parser.parse_args() - dc = draw_constellation(args.file[0], args) + dc = draw_constellation(args.file, args) if __name__ == "__main__": try: -- cgit v1.2.3