From 4d2809c9a46ec5676f2a08457609f559d910785f Mon Sep 17 00:00:00 2001 From: Jiří Pinkava <j-pi@seznam.cz> Date: Sun, 26 Jun 2016 13:04:39 +0200 Subject: filter: replace OptionParser by ArgumentParser for gr-utils and gr-qtgui --- gr-utils/python/utils/gr_plot_psd | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'gr-utils/python/utils/gr_plot_psd') diff --git a/gr-utils/python/utils/gr_plot_psd b/gr-utils/python/utils/gr_plot_psd index 059ca6b645..b052cbfdd7 100644 --- a/gr-utils/python/utils/gr_plot_psd +++ b/gr-utils/python/utils/gr_plot_psd @@ -27,13 +27,9 @@ from gnuradio.plot_psd_base import plot_psd_base def main(): parser = plot_psd_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_psd_base(options.data_type, filename, options) + dc = plot_psd_base(args.data_type, args.file, args) if __name__ == "__main__": try: -- cgit v1.2.3