Mar-16-2022, 02:34 PM
(This post was last modified: Mar-16-2022, 03:14 PM by radioactive9.)
I was so frustrated I even tried to use docopt - but it is too complex and I left the idea
Then taking your line of thought I removed all the parameters which was being passed from the Tool whose value contains space
And voila. It just went through and created the necessary servicenow ticket.
Yes I am absolute noob in python. I know this and that in all coding language - but not mastered any of them.
For example -
I passed all single worded value arguments and all went well
As soon as I introduced --os which has space it stopped working as the value has space.
Further to my testing '--eventtime', '2022-03-16 16:15:16 +0100' actually pursing without any issue. But --os fails :(
So what are my options as --output is very crucial parameter which contain important information and need to be part of the ticket.
No I kept getting Error to run that. Those oneliners always confuse me.
Then taking your line of thought I removed all the parameters which was being passed from the Tool whose value contains space
And voila. It just went through and created the necessary servicenow ticket.
Yes I am absolute noob in python. I know this and that in all coding language - but not mastered any of them.
For example -
I passed all single worded value arguments and all went well
As soon as I introduced --os which has space it stopped working as the value has space.
Further to my testing '--eventtime', '2022-03-16 16:15:16 +0100' actually pursing without any issue. But --os fails :(
So what are my options as --output is very crucial parameter which contain important information and need to be part of the ticket.
(Mar-16-2022, 08:55 AM)Gribouillis Wrote: Have you tried producing the argument list with the code I wrote above?
No I kept getting Error to run that. Those oneliners always confuse me.