tools/workqueue: parse help before importing drgn

wq_monitor.py and wq_dump.py import drgn before argparse can handle "-h".
That makes help fail on systems where drgn is not installed, even though
the scripts do not need drgn to print usage text.

Parse arguments before importing drgn so the help path works without the
runtime debugging dependency. Normal execution still imports drgn before
reading kernel state.

Signed-off-by: Yousef Alhouseen <alhouseenyousef@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
Yousef Alhouseen 2026-06-24 14:33:36 +02:00 • committed by Tejun Heo
commit 4d9be38891
2 changed files with 8 additions and 8 deletions