From 5128522fe203e4a0057053fcdfa617294d385539 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Wed, 14 Feb 2024 14:04:45 -0600 Subject: [PATCH] Renamed script flag -Z/--depth -> -z/--depth Previously, the intention of upper case -Z was the match -W/--width and -H/--height, which are uppercase to avoid conflicts with -h/--help. But -z/--depth isn't _really_ related to -W/-H. This avoids a conflict with -Z/--lebesgue, but may conflict with -z/--cat. Fortunately we don't currently have any conflicts with the latter. Since -z/--depth and -Z/--lebesgue are both disk-layout related, the risk of conflicts are probably much higher there. --- scripts/dbgbmap.py | 2 +- scripts/dbgbtree.py | 2 +- scripts/dbglfs.py | 4 ++-- scripts/dbgmtree.py | 2 +- scripts/perf.py | 2 +- scripts/perfbd.py | 2 +- scripts/stack.py | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/dbgbmap.py b/scripts/dbgbmap.py index ac43d9cb..c9e41658 100755 --- a/scripts/dbgbmap.py +++ b/scripts/dbgbmap.py @@ -1859,7 +1859,7 @@ if __name__ == "__main__": action='store_true', help="Show how much of each block is in use.") parser.add_argument( - '--depth', + '-z', '--depth', nargs='?', type=lambda x: int(x, 0), const=0, diff --git a/scripts/dbgbtree.py b/scripts/dbgbtree.py index bcc643d8..7e7a398b 100755 --- a/scripts/dbgbtree.py +++ b/scripts/dbgbtree.py @@ -1053,7 +1053,7 @@ if __name__ == "__main__": action='store_true', help="Show inner branches.") parser.add_argument( - '-Z', '--depth', + '-z', '--depth', nargs='?', type=lambda x: int(x, 0), const=0, diff --git a/scripts/dbglfs.py b/scripts/dbglfs.py index 84c74917..31e16da8 100755 --- a/scripts/dbglfs.py +++ b/scripts/dbglfs.py @@ -2231,7 +2231,7 @@ if __name__ == "__main__": action='store_true', help="Don't truncate, show the full contents.") parser.add_argument( - '-Z', '--depth', + '-z', '--depth', nargs='?', type=lambda x: int(x, 0), const=0, @@ -2253,7 +2253,7 @@ if __name__ == "__main__": action='store_true', help="Show inner branches.") parser.add_argument( - '-z', '--struct-depth', + '-Z', '--struct-depth', nargs='?', type=lambda x: int(x, 0), const=0, diff --git a/scripts/dbgmtree.py b/scripts/dbgmtree.py index 1bd9ac63..e4c6d1b9 100755 --- a/scripts/dbgmtree.py +++ b/scripts/dbgmtree.py @@ -1706,7 +1706,7 @@ if __name__ == "__main__": action='store_true', help="Show inner branches.") parser.add_argument( - '-Z', '--depth', + '-z', '--depth', nargs='?', type=lambda x: int(x, 0), const=0, diff --git a/scripts/perf.py b/scripts/perf.py index c280a4ad..0dd4def4 100755 --- a/scripts/perf.py +++ b/scripts/perf.py @@ -1271,7 +1271,7 @@ if __name__ == "__main__": help="Depth to propagate samples up the call-stack. 0 propagates up " "to the entry point, 1 does no propagation. Defaults to 0.") parser.add_argument( - '-Z', '--depth', + '-z', '--depth', nargs='?', type=lambda x: int(x, 0), const=0, diff --git a/scripts/perfbd.py b/scripts/perfbd.py index a46c8210..c99ca3a6 100755 --- a/scripts/perfbd.py +++ b/scripts/perfbd.py @@ -1235,7 +1235,7 @@ if __name__ == "__main__": help="Depth to propagate samples up the call-stack. 0 propagates up " "to the entry point, 1 does no propagation. Defaults to 0.") parser.add_argument( - '-Z', '--depth', + '-z', '--depth', nargs='?', type=lambda x: int(x, 0), const=0, diff --git a/scripts/stack.py b/scripts/stack.py index 4487f604..4ee2d3f4 100755 --- a/scripts/stack.py +++ b/scripts/stack.py @@ -735,7 +735,7 @@ if __name__ == "__main__": action='store_true', help="Include builtin and libc specific symbols.") parser.add_argument( - '-Z', '--depth', + '-z', '--depth', nargs='?', type=lambda x: int(x, 0), const=0,