1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 10:16:14 +01:00
github.com_openSUSE_osc/doc/plugins/request.py
Daniel Mach 26a8fb1acf commandline: New class-based commands
This is based on a prototype we've worked on together
with Laurin Fäller <laurin.faeller@suse.com>.
2023-03-31 09:39:04 +02:00

19 lines
376 B
Python

import osc.commandline
class RequestCommand(osc.commandline.OscCommand):
"""
Manage requests
"""
name = "request"
aliases = ["rq"]
# arguments specified here will get inherited to all subcommands automatically
def init_arguments(self):
self.add_argument(
"-m",
"--message",
metavar="TEXT",
)