You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parse=argparse.ArgumentParser(description="select attribute (--attr) from the received json (--sjson) and retrieve the value with the key set as parameter (--key)")
parse.add_argument("--key", required=True)
parse.add_argument("--sjson", required=True)
parse.add_argument("--attr", required=True)
args=parse.parse_args()
ifnotargs.keyornotargs.sjsonornotargs.attr:
print("error: need the parameter --attr, --key and --sjson")