diff options
author | Jiří Pinkava <j-pi@seznam.cz> | 2016-09-17 15:43:26 +0200 |
---|---|---|
committer | Jiří Pinkava <j-pi@seznam.cz> | 2016-09-17 15:43:26 +0200 |
commit | 00aec59017d99db6ca5216e4ca2bb44786c0ed91 (patch) | |
tree | 56009025a216cb3165343ca23f484166dc315d9b /gr-utils/python/utils/gr_plot_const | |
parent | 54ede29960f9022a8040e10c0d58fa8fed989a3f (diff) |
cleanup: remove nargs=1 from ArgumentParser
Diffstat (limited to 'gr-utils/python/utils/gr_plot_const')
-rwxr-xr-x | gr-utils/python/utils/gr_plot_const | 4 |
1 files changed, 2 insertions, 2 deletions
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: |