utils: Move argument processing into function and call from main()
commitaf5aecced12a8f6a9259602f8ddf3662fe6c1ba0
authorMartin Schwenke <martin@meltin.net>
Wed, 26 May 2021 00:57:07 +0000 (26 10:57 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 20 Jul 2021 04:43:37 +0000 (20 04:43 +0000)
tree6a04ddfeaded166c4b772d3b6a89653351d12f8e
parente66637a079c070d29c685b6315e5427679dc778a
utils: Move argument processing into function and call from main()

Removes the need for the global variables currently associated with
this processing.  Also removes unnecessarily double-handling the
defaults, which are assigned to the global variables and set via
add_argument().

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jose A. Rivera <jarrpa@samba.org>
ctdb/utils/etcd/ctdb_etcd_lock