diff mbox series

[v4,3/3] tuna: require -i option for cstate

Message ID 20240725162532.1890461-3-ashelat@redhat.com
State New
Headers show
Series [v4] tuna: add options to get idle state info | expand

Commit Message

Anubhav Shelat July 25, 2024, 4:25 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'])