diff --git a/confluent_client/bin/nodegrouplist b/confluent_client/bin/nodegrouplist index 46e034d7..baeb17a6 100644 --- a/confluent_client/bin/nodegrouplist +++ b/confluent_client/bin/nodegrouplist @@ -45,15 +45,16 @@ def main(): showtype='all' requestargs=args[1:] nodetype='noderange' - if len(args) > 1: - exitcode=client.printattributes(session,requestargs,showtype,nodetype,noderange,options) + if len(args) > 0: + argparser.print_help() + sys.exit(1) else: for res in session.read(nodelist): if 'error' in res: sys.stderr.write(res['error'] + '\n') exitcode = 1 else: - print res['item']['href'].replace('/', '') + print(res['item']['href'].replace('/', '')) sys.exit(exitcode) diff --git a/confluent_client/doc/man/nodegrouplist.ronn b/confluent_client/doc/man/nodegrouplist.ronn new file mode 100644 index 00000000..65604a12 --- /dev/null +++ b/confluent_client/doc/man/nodegrouplist.ronn @@ -0,0 +1,14 @@ +nodegroupattrib(8) -- List or change confluent nodegroup attributes +=================================================================== + +## SYNOPSIS + +`nodegrouplist` + +## DESCRIPTION + +`nodegrouplist` lists the currently defined groups in confluent. + +## SEE ALSO + +nodeattrib(8), nodeattribexpressions(5), nodegroupattrib(8)