Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osc-plugin-dput
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
obs
osc-plugin-dput
Commits
8a4b4c55
Unverified
Commit
8a4b4c55
authored
1 year ago
by
Andrej Shadura
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Emulate get_cmd_help missing from osc 1.x
parent
fa647f85
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dput.py
+1
-0
1 addition, 0 deletions
dput.py
with
1 addition
and
0 deletions
dput.py
+
1
−
0
View file @
8a4b4c55
...
@@ -38,6 +38,7 @@ def do_dput(self, subcmd, opts, *args):
...
@@ -38,6 +38,7 @@ def do_dput(self, subcmd, opts, *args):
# osc 1.x removes get_cmd_help, inject a replacement
# osc 1.x removes get_cmd_help, inject a replacement
if
not
hasattr
(
self
,
"
get_cmd_help
"
):
if
not
hasattr
(
self
,
"
get_cmd_help
"
):
import
argparse
import
argparse
def
format_help
(
subcmd
,
opts
=
None
,
*
args
):
def
format_help
(
subcmd
,
opts
=
None
,
*
args
):
for
action
in
self
.
argparser
.
_actions
:
for
action
in
self
.
argparser
.
_actions
:
if
not
isinstance
(
action
,
argparse
.
_SubParsersAction
):
if
not
isinstance
(
action
,
argparse
.
_SubParsersAction
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment