Skip to content

Commit ca3efe2

Browse files
committed
feat: use generic cli args for get-kubeconfig plugin
1 parent 35d3835 commit ca3efe2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

linodecli/plugins/get-kubeconfig.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import yaml
1515

1616
from linodecli.exit_codes import ExitCodes
17+
from linodecli.plugins import inherit_plugin_args
1718

1819
PLUGIN_BASE = "linode-cli get-kubeconfig"
1920

@@ -22,8 +23,9 @@ def call(args, context):
2223
"""
2324
The entrypoint for this plugin
2425
"""
25-
parser = argparse.ArgumentParser(PLUGIN_BASE, add_help=True)
26-
26+
parser = inherit_plugin_args(
27+
argparse.ArgumentParser(PLUGIN_BASE, add_help=True)
28+
)
2729
group = parser.add_mutually_exclusive_group()
2830

2931
parser.add_argument(

0 commit comments

Comments
 (0)