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 <[email protected]>
---
 scripts/oe-depends-dot | 3 ---
 1 file changed, 3 deletions(-)

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):
         """

-- 
2.55.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#245067): 
https://lists.openembedded.org/g/openembedded-core/message/245067
Mute This Topic: https://lists.openembedded.org/mt/121082981/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to