- Notifications
You must be signed in to change notification settings - Fork673
-
I find myself writing a lot of (reusable) one-of scripts, so it would be really nice to have all the "standard" options from the command line tool. Most of the time I use parser=argparse.ArgumentParser(description="My GitLab API Tool",allow_abbrev=False)GitLab.add_arguments(parser)args=parser.parse_args()GitLab.from_environment(args=args) which would allow to integrate all the "config" options from the command line tool into other tools. How about it? (I might have some time to contribute the change to facilitate this, probably requires a bit of refactoring...) (This seems a bit similar to#2830) |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment
-
We could probably extract some of the config logic out of the CLI's I'm personally a bit busy at the moment with other things so contributions are welcome! Will be happy to review MRs. |
BetaWas this translation helpful?Give feedback.