Skip to content

Commit 1ab118d

Browse files
merllezilber-akamaizliang-akamai
authored
feat: use generic cli args for get-kubeconfig plugin (#787)
Co-authored-by: Erik Zilber <[email protected]> Co-authored-by: Zhiwei Liang <[email protected]>
1 parent a246f53 commit 1ab118d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

linodecli/plugins/get-kubeconfig.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
from linodecli.exit_codes import ExitCodes
1717
from linodecli.help_formatter import SortingHelpFormatter
18+
from linodecli.plugins import inherit_plugin_args
1819

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

@@ -23,8 +24,10 @@ def call(args, context):
2324
"""
2425
The entrypoint for this plugin
2526
"""
26-
parser = argparse.ArgumentParser(
27-
PLUGIN_BASE, add_help=True, formatter_class=SortingHelpFormatter
27+
parser = inherit_plugin_args(
28+
argparse.ArgumentParser(
29+
PLUGIN_BASE, add_help=True, formatter_class=SortingHelpFormatter
30+
)
2831
)
2932

3033
group = parser.add_mutually_exclusive_group()

0 commit comments

Comments
 (0)