From c6d60f3a0920855d1c16b488d49cc651a338e6cd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 19 May 2018 02:03:49 +0300 Subject: Fix --std2 parameter. Add alias -S. --- deheader | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deheader b/deheader index fdac407..0eb7185 100755 --- a/deheader +++ b/deheader @@ -1521,7 +1521,7 @@ class Summary: (len(self.filenames), len(self.includes), len(self.unneeded)) if __name__ == "__main__": - (options, arguments) = getopt.getopt(sys.argv[1:], "hi:m:qrvx:V:c:d:s:", + (options, arguments) = getopt.getopt(sys.argv[1:], "hi:m:qrvx:V:c:d:s:S:", ["help", "ignore", "maker", "quiet", "remove", "verbose", @@ -1563,8 +1563,8 @@ if __name__ == "__main__": defines = val elif switch in ('-s', '--std'): std = val - elif switch in ('--std2'): - std = val + elif switch in ('-S', '--std2'): + std2 = val if not ignores: ignore = None else: -- cgit v1.2.3-70-g09d2