From 0875cde46f391286ea99e845312ff75fbc6190d4 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 19 Aug 2010 14:52:47 -0400 Subject: [PATCH] Remove duplicate Command arguments (e.g. help, stack) from FlatFilterCommand --- hooke/plugin/flatfilt.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hooke/plugin/flatfilt.py b/hooke/plugin/flatfilt.py index 952e6fc..63a9967 100644 --- a/hooke/plugin/flatfilt.py +++ b/hooke/plugin/flatfilt.py @@ -213,10 +213,12 @@ class FlatFilterCommand (FilterCommand): def __init__(self, plugin): flat_peaks = [c for c in plugin._commands if c.name == 'flat filter peaks'][0] - flat_peaks_arg_names = [a.name for a in flat_peaks.arguments] + flat_peaks_arguments = [a for a in flat_peaks.arguments + if a.name not in ['help', 'stack']] + flat_peaks_arg_names = [a.name for a in flat_peaks_arguments] plugin_arguments = [a for a in plugin._arguments if a.name not in flat_peaks_arg_names] - arguments = flat_peaks.arguments + plugin_arguments + arguments = flat_peaks_arguments + plugin_arguments super(FlatFilterCommand, self).__init__( plugin, name='flat filter playlist') self.arguments.extend(arguments) -- 2.26.2