Make command usage in help for required arguments consistent #4589

Merged
Jackenmen merged 7 commits from V3/consistent_varargs into V3/develop 2020-12-22 20:14:48 +01:00
Jackenmen commented 2020-11-10 18:45:09 +01:00 (Migrated from github.com)

Type

  • Bugfix
  • Enhancement
  • New feature

Description of the changes

### Type - [ ] Bugfix - [x] Enhancement - [ ] New feature ### Description of the changes
palmtree5 (Migrated from github.com) reviewed 2020-11-10 18:45:09 +01:00
bobloy (Migrated from github.com) reviewed 2020-11-30 22:25:24 +01:00
bobloy (Migrated from github.com) left a comment
No description provided.
All your changes look good to me. There were a few you missed. Would you like me to list them here, or make a separate PR?
bobloy commented 2020-11-30 23:00:21 +01:00 (Migrated from github.com)

I'll just list them since it's not as many as I thought. I was confused about require_var_positional's interaction with Greedy

  • Image:
    • gif
    • gifr
  • Permissions:
    • permissions canrun
  • Core:
    • set api remove

Editing to add more as I find them.

I'll just list them since it's not as many as I thought. I was confused about `require_var_positional`'s interaction with `Greedy` - Image: - `gif` - `gifr` - Permissions: - `permissions canrun` - Core: - `set api remove` Editing to add more as I find them.
Jackenmen commented 2020-12-15 01:30:49 +01:00 (Migrated from github.com)

I used require_var_positional=True in [p]set api remove and edited [p]gif and [p]gifr to be a consume all argument as it didn't make much sense to begin with.
[p]permissions canrun wasn't using var positional argument (*args), so I haven't touched that one.
Thanks for the help @bobloy!

I used `require_var_positional=True` in `[p]set api remove` and edited `[p]gif` and `[p]gifr` to be a consume all argument as it didn't make much sense to begin with. `[p]permissions canrun` wasn't using var positional argument (`*args`), so I haven't touched that one. Thanks for the help @bobloy!
Flame442 (Migrated from github.com) requested changes 2020-12-21 04:17:12 +01:00
@ -391,11 +389,8 @@ class Permissions(commands.Cog):
`<cog_or_command>` is the cog or command to add the rule to.
This is case sensitive.
Flame442 (Migrated from github.com) commented 2020-12-21 02:10:17 +01:00

Should this one be <who_or_what...>?

Should this one be `<who_or_what...>`?
@ -426,11 +419,8 @@ class Permissions(commands.Cog):
`<cog_or_command>` is the cog or command to add the rule to.
This is case sensitive.
Flame442 (Migrated from github.com) commented 2020-12-21 02:22:36 +01:00

Should this one be <who_or_what...>?

Should this one be `<who_or_what...>`?
@ -453,11 +443,8 @@ class Permissions(commands.Cog):
`<cog_or_command>` is the cog or command to remove the rule
from. This is case sensitive.
Flame442 (Migrated from github.com) commented 2020-12-21 02:22:51 +01:00

Should this one be <who_or_what...>?

Should this one be `<who_or_what...>`?
@ -480,11 +465,8 @@ class Permissions(commands.Cog):
`<cog_or_command>` is the cog or command to remove the rule
from. This is case sensitive.
Flame442 (Migrated from github.com) commented 2020-12-21 02:23:01 +01:00

Should this one be <who_or_what...>?

Should this one be `<who_or_what...>`?
@ -1431,12 +1427,10 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
for page in pagify(total_message):
Flame442 (Migrated from github.com) commented 2020-12-21 02:37:43 +01:00

Any reason why this name is here when it is the same as the function name?

Any reason why this `name` is here when it is the same as the function name?
Jackenmen (Migrated from github.com) reviewed 2020-12-21 10:57:28 +01:00
@ -1431,12 +1427,10 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
for page in pagify(total_message):
Jackenmen (Migrated from github.com) commented 2020-12-21 10:57:27 +01:00

It was like this already so I just haven't touched it. Just changed it now.

It was like this already so I just haven't touched it. Just changed it now.
Flame442 (Migrated from github.com) approved these changes 2020-12-22 20:08:52 +01:00
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!4589
No description provided.