Skip to content
Snippets Groups Projects
Commit 7ed9ef1c authored by Karl Fogel's avatar Karl Fogel
Browse files

Rename to 'gl-sak' and start documenting

parent c56a98d2
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python3
"""gl-sak: GitLab Swiss Army Knife.
A general-purpose GitLab tool for batch access to and manipulation of
entities (issues, labels, milestones, etc) in a GitLab project.
"""
# To get started:
#
# $ git clone git@gitlab.com:python-gitlab/python-gitlab.git
......@@ -16,9 +22,15 @@ import argparse
def main():
# Set up options and arguments
arg_parser = argparse.ArgumentParser(
description="Do some things with the GitLab API",
epilog="What we do in the shadows, after the main help text.")
arg_parser.add_argument('-t', '--access-token')
prog="gl-sak",
description=__doc__,
# https://docs.python.org/3/library/argparse.html#formatter-class
# says more about this next argument. Another possible value
# here would be RawDescriptionHelpFormatter.
formatter_class=argparse.RawTextHelpFormatter)
arg_parser.add_argument(
'-t', '--access-token',
help="The GitLab access token to use for this operation")
args = arg_parser.parse_args()
# Set up the GitLab instance.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment