From 67335c198bea9256f2c43fd55bde7d02d6e5faec Mon Sep 17 00:00:00 2001 From: Gilles Grandou Date: Mon, 7 Oct 2019 09:23:44 +0200 Subject: [PATCH] register_ovh_account: pass domain as argument --- register_ovh_account | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/register_ovh_account b/register_ovh_account index b017b64..ce1f344 100755 --- a/register_ovh_account +++ b/register_ovh_account @@ -1,8 +1,13 @@ #!/usr/bin/python3 +import sys from ovh import ovh -domain = 'example.com' +if len(sys.argv) != 2: + print('usage: {} '.format(sys.argv[0])) + sys.exit(1) + +domain = sys.argv[1] client = ovh.Client()