Skip to content

Commit

Permalink
Drop use of 'allow_abbrev' as its python 3.5 or later only
Browse files Browse the repository at this point in the history
Use of this argparse constructor keyword is causing regression
test failures, and its use was nice-to-have - this means the -e
shorthand for --ebpf will be available iff its not been used in
another add_argument call.  Neither -e/--ebpf are advertised in
the usage message anyway.
  • Loading branch information
natoscott committed Jan 20, 2018
1 parent f5fb9af commit 1a197db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/biolatency.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
parser = argparse.ArgumentParser(
description="Summarize block device I/O latency as a histogram",
formatter_class=argparse.RawDescriptionHelpFormatter,
epilog=examples, allow_abbrev=False)
epilog=examples)
parser.add_argument("-T", "--timestamp", action="store_true",
help="include timestamp on output")
parser.add_argument("-Q", "--queued", action="store_true",
Expand Down
2 changes: 1 addition & 1 deletion tools/biotop.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
parser = argparse.ArgumentParser(
description="Block device (disk) I/O by process",
formatter_class=argparse.RawDescriptionHelpFormatter,
epilog=examples, allow_abbrev=False)
epilog=examples)
parser.add_argument("-C", "--noclear", action="store_true",
help="don't clear the screen")
parser.add_argument("-r", "--maxrows", default=20,
Expand Down
2 changes: 1 addition & 1 deletion tools/tcplife.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
parser = argparse.ArgumentParser(
description="Trace the lifespan of TCP sessions and summarize",
formatter_class=argparse.RawDescriptionHelpFormatter,
epilog=examples, allow_abbrev=False)
epilog=examples)
parser.add_argument("-T", "--time", action="store_true",
help="include time column on output (HH:MM:SS)")
parser.add_argument("-t", "--timestamp", action="store_true",
Expand Down

0 comments on commit 1a197db

Please sign in to comment.