summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Watkins <oddbloke@ubuntu.com>2021-01-07 11:14:10 -0500
committerGitHub <noreply@github.com>2021-01-07 11:14:10 -0500
commit75eb007f68d3a75c094f0daccd66eb412359e78e (patch)
treeb30bdd15e802ebff08b43db5f6e994ea02133af0
parentea6fcc14909eda6c2409658e897c6ebd5157e290 (diff)
downloadvyos-cloud-init-75eb007f68d3a75c094f0daccd66eb412359e78e.tar.gz
vyos-cloud-init-75eb007f68d3a75c094f0daccd66eb412359e78e.zip
net_convert: add some missing help text (#755)
-rwxr-xr-xcloudinit/cmd/devel/net_convert.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/cloudinit/cmd/devel/net_convert.py b/cloudinit/cmd/devel/net_convert.py
index 80d217ca..0668ffa3 100755
--- a/cloudinit/cmd/devel/net_convert.py
+++ b/cloudinit/cmd/devel/net_convert.py
@@ -28,11 +28,13 @@ def get_parser(parser=None):
if not parser:
parser = argparse.ArgumentParser(prog=NAME, description=__doc__)
parser.add_argument("-p", "--network-data", type=open,
- metavar="PATH", required=True)
+ metavar="PATH", required=True,
+ help="The network configuration to read")
parser.add_argument("-k", "--kind",
choices=['eni', 'network_data.json', 'yaml',
'azure-imds', 'vmware-imc'],
- required=True)
+ required=True,
+ help="The format of the given network config")
parser.add_argument("-d", "--directory",
metavar="PATH",
help="directory to place output in",
@@ -50,7 +52,8 @@ def get_parser(parser=None):
help='enable debug logging to stderr.')
parser.add_argument("-O", "--output-kind",
choices=['eni', 'netplan', 'sysconfig'],
- required=True)
+ required=True,
+ help="The network config format to emit")
return parser