how to convert command line help output(plain text) to json format using bash or python [on hold]

The name of the pictureThe name of the pictureThe name of the pictureClash 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









share|improve this 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 is printf '"output":"%s"' "$(./create_instance --help)" -- what do you want the JSON output to contain?
    – glenn jackman
    7 hours ago














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









share|improve this 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 is printf '"output":"%s"' "$(./create_instance --help)" -- what do you want the JSON output to contain?
    – glenn jackman
    7 hours ago












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









share|improve this question















 ./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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 is printf '"output":"%s"' "$(./create_instance --help)" -- what do you want the JSON output to contain?
    – glenn jackman
    7 hours ago












  • 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







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















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay