diff mbox series

[1/2] tuna: require -i option for cstate

Message ID 20240716191920.607678-1-ashelat@redhat.com
State Superseded
Headers show
Series [1/2] tuna: require -i option for cstate | expand

Commit Message

Anubhav Shelat July 16, 2024, 7:19 p.m. UTC
Previously, user could run cstate subcommand without specifying cstate.
Now the option to specify a cstate is required.

Signed-off-by: Anubhav Shelat <ashelat@redhat.com>
---
 tuna-cmd.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tuna-cmd.py b/tuna-cmd.py
index b6f94182241f..5a7e795e3bea 100755
--- a/tuna-cmd.py
+++ b/tuna-cmd.py
@@ -224,7 +224,7 @@  def gen_parser():
     show_irqs.add_argument('-q', '--irqs', **MODS['irqs'])
 
     cstate.add_argument('-c', '--cpus', **MODS['cpus'])
-    cstate.add_argument('-i', '--cstate', **MODS['cstate'])
+    cstate.add_argument('-i', '--cstate', **MODS['cstate'], required=True)
     cstate.add_argument('--info', **MODS['info'])
 
     what_is.add_argument('thread_list', **POS['thread_list'])