how to convert command line help output(plain text) to json format using bash or python [on hold]
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
./create_instance --help
usage: create_instance.py [-h] --region REGION --vpc VPC
--subnet_id subnet_id --ami_id
AMI_ID --security_group SECURITY_GROUP
optional arguments:
-h, --help show this help message and exit
--region REGION
Please specify the AWS Region,where the instance.
--vpc VPC Please specify the vpc id
--subnet_id SUBNET_ID Please specify subnet id, where the instance should create.
--ami_id AMI_ID
Please specify market place base image id
--base_ami BASE_AMI Please specify base os ami to be used for creating the
instance
--security_group SECURITY_GROUP
Please specify security group id
text-processing python json
put on hold as unclear what you're asking by Jeff Schaller, Filipe Brandenburger, JigglyNaga, Goro, RalfFriedl 3 hours ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |Â
up vote
0
down vote
favorite
./create_instance --help
usage: create_instance.py [-h] --region REGION --vpc VPC
--subnet_id subnet_id --ami_id
AMI_ID --security_group SECURITY_GROUP
optional arguments:
-h, --help show this help message and exit
--region REGION
Please specify the AWS Region,where the instance.
--vpc VPC Please specify the vpc id
--subnet_id SUBNET_ID Please specify subnet id, where the instance should create.
--ami_id AMI_ID
Please specify market place base image id
--base_ami BASE_AMI Please specify base os ami to be used for creating the
instance
--security_group SECURITY_GROUP
Please specify security group id
text-processing python json
put on hold as unclear what you're asking by Jeff Schaller, Filipe Brandenburger, JigglyNaga, Goro, RalfFriedl 3 hours ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
4
The body of your question is a copy/paste of a help page. Can you expand the question to explain what your input, expected output, and transformations are?
â Jeff Schaller
7 hours ago
The flippant answer isprintf '"output":"%s"' "$(./create_instance --help)"
-- what do you want the JSON output to contain?
â glenn jackman
7 hours ago
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
./create_instance --help
usage: create_instance.py [-h] --region REGION --vpc VPC
--subnet_id subnet_id --ami_id
AMI_ID --security_group SECURITY_GROUP
optional arguments:
-h, --help show this help message and exit
--region REGION
Please specify the AWS Region,where the instance.
--vpc VPC Please specify the vpc id
--subnet_id SUBNET_ID Please specify subnet id, where the instance should create.
--ami_id AMI_ID
Please specify market place base image id
--base_ami BASE_AMI Please specify base os ami to be used for creating the
instance
--security_group SECURITY_GROUP
Please specify security group id
text-processing python json
./create_instance --help
usage: create_instance.py [-h] --region REGION --vpc VPC
--subnet_id subnet_id --ami_id
AMI_ID --security_group SECURITY_GROUP
optional arguments:
-h, --help show this help message and exit
--region REGION
Please specify the AWS Region,where the instance.
--vpc VPC Please specify the vpc id
--subnet_id SUBNET_ID Please specify subnet id, where the instance should create.
--ami_id AMI_ID
Please specify market place base image id
--base_ami BASE_AMI Please specify base os ami to be used for creating the
instance
--security_group SECURITY_GROUP
Please specify security group id
text-processing python json
text-processing python json
edited 7 hours ago
Jeff Schaller
33.8k851113
33.8k851113
asked 7 hours ago
Mahesh Phate
294
294
put on hold as unclear what you're asking by Jeff Schaller, Filipe Brandenburger, JigglyNaga, Goro, RalfFriedl 3 hours ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as unclear what you're asking by Jeff Schaller, Filipe Brandenburger, JigglyNaga, Goro, RalfFriedl 3 hours ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
4
The body of your question is a copy/paste of a help page. Can you expand the question to explain what your input, expected output, and transformations are?
â Jeff Schaller
7 hours ago
The flippant answer isprintf '"output":"%s"' "$(./create_instance --help)"
-- what do you want the JSON output to contain?
â glenn jackman
7 hours ago
add a comment |Â
4
The body of your question is a copy/paste of a help page. Can you expand the question to explain what your input, expected output, and transformations are?
â Jeff Schaller
7 hours ago
The flippant answer isprintf '"output":"%s"' "$(./create_instance --help)"
-- what do you want the JSON output to contain?
â glenn jackman
7 hours ago
4
4
The body of your question is a copy/paste of a help page. Can you expand the question to explain what your input, expected output, and transformations are?
â Jeff Schaller
7 hours ago
The body of your question is a copy/paste of a help page. Can you expand the question to explain what your input, expected output, and transformations are?
â Jeff Schaller
7 hours ago
The flippant answer is
printf '"output":"%s"' "$(./create_instance --help)"
-- what do you want the JSON output to contain?â glenn jackman
7 hours ago
The flippant answer is
printf '"output":"%s"' "$(./create_instance --help)"
-- what do you want the JSON output to contain?â glenn jackman
7 hours ago
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
4
The body of your question is a copy/paste of a help page. Can you expand the question to explain what your input, expected output, and transformations are?
â Jeff Schaller
7 hours ago
The flippant answer is
printf '"output":"%s"' "$(./create_instance --help)"
-- what do you want the JSON output to contain?â glenn jackman
7 hours ago