diff options
author | Jiří Pinkava <j-pi@seznam.cz> | 2016-06-26 13:04:39 +0200 |
---|---|---|
committer | Jiří Pinkava <j-pi@seznam.cz> | 2016-08-06 21:51:37 +0200 |
commit | 4d2809c9a46ec5676f2a08457609f559d910785f (patch) | |
tree | 3e19981d3e89729a61cc415b3a269c9eb209fd7d /gr-utils/python/utils/gr_plot_fft | |
parent | 675afc063c9ca5ccec3ede43d87aac83c1928182 (diff) |
filter: replace OptionParser by ArgumentParser for gr-utils and gr-qtgui
Diffstat (limited to 'gr-utils/python/utils/gr_plot_fft')
-rw-r--r-- | gr-utils/python/utils/gr_plot_fft | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gr-utils/python/utils/gr_plot_fft b/gr-utils/python/utils/gr_plot_fft index 4343481645..59fc88b994 100644 --- a/gr-utils/python/utils/gr_plot_fft +++ b/gr-utils/python/utils/gr_plot_fft @@ -27,13 +27,9 @@ from gnuradio.plot_fft_base import plot_fft_base def main(): parser = plot_fft_base.setup_options() - (options, args) = parser.parse_args () - if len(args) != 1: - parser.print_help() - raise SystemExit, 1 - filename = args[0] + args = parser.parse_args() - dc = plot_fft_base(options.data_type, filename, options) + dc = plot_fft_base(args.data_type, args.file, args) if __name__ == "__main__": try: |