Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust how --include and --exclude are presented as options. #252

Merged
merged 5 commits into from
Sep 17, 2020

Conversation

mtbc
Copy link
Member

@mtbc mtbc commented Sep 14, 2020

Mirrors commends on ome/omero-cli-duplicate#12 given those were adapted from these.

@@ -2017,10 +2016,12 @@ def _configure(self, parser):
self._add_wait(parser, default=-1)
parser.add_argument(
"--include",
help="Modifies the given option by including a list of classes")
help="Specify kinds of object to include",
Copy link
Member

Choose a reason for hiding this comment

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

The previous help implies a "list of classes", this implies only one. Which is correct?

Copy link
Member Author

@mtbc mtbc Sep 14, 2020

Choose a reason for hiding this comment

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

if args.include:
    inc = args.include.split(",")

Copy link
Member Author

Choose a reason for hiding this comment

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

"kinds" implies multiple, surely?

@mtbc mtbc linked an issue Sep 14, 2020 that may be closed by this pull request
@mtbc
Copy link
Member Author

mtbc commented Sep 16, 2020

For testing one can adjust the "omero.cmd.graphs" line in logback.xml from INFO to DEBUG to get a full report in Blitz-0.log of the options that the CLI sent to the server.

src/omero/cli.py Outdated Show resolved Hide resolved
Co-authored-by: Mark Carroll <m.t.b.carroll@dundee.ac.uk>
@joshmoore joshmoore merged commit 85bf837 into ome:master Sep 17, 2020
@mtbc mtbc deleted the CLI-graph-args branch September 17, 2020 09:20
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.

Graphs options could use nargs="+"
3 participants