diff mbox series

[2/4] scripts/oe-depends-dot: remove custom argument checking

Message ID 20260904-oe-depends-dot-cleanups-v1-2-b56bf05fc5fd@bootlin.com
State Under Review
Headers show
Series Minor cleanups and improvements for script/oe-depends-dot | expand

Commit Message

Antonin Godard Sept. 4, 2026, 8:22 a.m. UTC
The argparse Python module already handles argument parsing and checking
for us, so there's no need to do it another time here. Remove these
checks.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 scripts/oe-depends-dot | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/scripts/oe-depends-dot b/scripts/oe-depends-dot
index 7b16b911bd..c505a196f9 100755
--- a/scripts/oe-depends-dot
+++ b/scripts/oe-depends-dot
@@ -49,9 +49,6 @@  Reduce the .dot file packages only, no tasks:
 
         self.args = parser.parse_args()
 
-        if len(sys.argv) != 3 and len(sys.argv) < 5:
-            print('ERROR: Not enough args, see --help for usage')
-
     @staticmethod
     def insert_dep_chain(chain, rdeps, alldeps):
         """