This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author falu2010
Recipients falu2010, paul.j3
Date 2017-02-27.22:07:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488233251.74.0.226744673512.issue29626@psf.upfronthosting.co.za>
In-reply-to
Content
Sample code to repro this:

import argparse

    parser = argparse.ArgumentParser(prog='cli')
    subparsers = parser.add_subparsers(dest="command")

    subparsers_user_delete = subparsers.add_parser("delete", help="Deletes a user in your organization.",
                                                        description="Deletes a user in your organization.")
    subparsers_user_delete.add_argument("userid", help="The userid of user.", default=None, type=int)
    subparsers_user_delete.add_argument("-p", "--projectid", metavar="",
                                        help="Specify the project ID of project from where you want to delete"
                                             " the user or else user will be deleted from organization.", type=int,
                                        default=None)

    parser_nodes = subparsers.add_parser('nodes')
    sp = parser_nodes.add_subparsers()
    p1 = sp.add_parser('list', description='Lists nodes in your current project')
    p1.add_argument('-p', '--projectid', action='store_true')
    p1.add_argument('-o', '--org', action='store_true', help=' (For administrators only) Lists all the nodes in')
    parser.parse_args()

Please run following command:
$issue.py delete -h
History
Date User Action Args
2017-02-27 22:07:31falu2010setrecipients: + falu2010, paul.j3
2017-02-27 22:07:31falu2010setmessageid: <1488233251.74.0.226744673512.issue29626@psf.upfronthosting.co.za>
2017-02-27 22:07:31falu2010linkissue29626 messages
2017-02-27 22:07:31falu2010create