Skip to content

Print an error in both Py2 and Py3 when no params are entered for commands with subarguments - #4902

Merged
memsharded merged 3 commits into
conan-io:developfrom
czoido:issue/4816
Apr 11, 2019
Merged

memsharded merged 3 commits into
conan-io:developfrom
czoido:issue/4816

Conversation

@czoido

@czoido czoido commented Apr 4, 2019

Copy link
Copy Markdown
Contributor

Changelog: Fix: Adding subparsers.required = True makes both Py2 and Py3 print an error when no arguments are entered in commands that have subarguments
Docs: omit

Fixes #4816

Bug in python: https://bugs.python.org/issue9253#msg186387

  • Refer to the issue that supports this Pull Request.
  • If the issue has missing info, explain the purpose/use case/pain/need that covers this Pull Request.
  • I've read the Contributing guide.
  • I've followed the PEP8 style guides for Python code.
  • I've opened another PR in the Conan docs repo to the develop branch, documenting this one.

@CLAassistant

CLAassistant commented Apr 4, 2019

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@jgsogo jgsogo added this to the 1.15 milestone Apr 4, 2019
@jgsogo
jgsogo requested a review from lasote April 4, 2019 12:26

@memsharded memsharded left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to have a test for this behavior, and guarantee it doesn't break in the future.

@jgsogo

jgsogo commented Apr 10, 2019

Copy link
Copy Markdown
Contributor

Please, merge develop branch and fix conflicts 😸

@jgsogo
jgsogo requested a review from memsharded April 10, 2019 19:13
@memsharded

Copy link
Copy Markdown
Member

Good, thanks!

@memsharded
memsharded merged commit 9fc4686 into conan-io:develop Apr 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Py3: Commands with subarguments do and say nothing if no params are entered

4 participants