question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proposal for changing --region/--ignore-checks/--append-rules argument format

See original GitHub issue

This proposal is following discussions in #166 and elsewhere.

Current behaviour for -r/-i/-a args is essentially argparse nargs='*', which means you can specify zero or more values for them. This is a bug, and it should be nargs='+', so you can specify one or more values.

Example of currently allowed commandlines:

# Implicit separation between exhaustive args and positional arg
cfn-lint -r us-west-1 us-west-2 -i E101 E102 -a E201 E202 -d template.yaml
# Explicit separation
cfn-lint -r us-west-1 us-west-2 -i E101 E102 -a E201 E202 -- template.yaml
# No positional arg
cfn-lint -r us-west-1 us-west-2 -i E101 E102 -a E201 E202 -t template.yaml

Proposed behaviour is to change -r/-i/-a to support single value (of comma-separated items) -r us-west-1,us-west-2 but allow multiple specification -r us-west-1 -r us-west-2.

Example of proposed commandlines:

# Form 1
cfn-lint -r us-west-1,us-west-2
# Form 2
cfn-lint -r us-west-1 -r us-west-2
# Both together is valid
cfn-lint -r us-west-1,us-west-2 -r us-west-3

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
cmmeyercommented, Jun 28, 2018

I find use case #3 horrifying, but see no reason not to support it. I like the comma separated list better than spaces personally – it parses better to humans as well. 👍

0reactions
cmmeyercommented, Sep 27, 2018

Hey, are we good for this one at this point? I think we’ve got command line args mostly sorted at this point. I’m going to go ahead and close this issue if no one has any objections…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sample Proposal Argument - Excelsior OWL
Below, you'll see a sample proposal argumentative essay written using APA 7 edition formatting guidelines. Click the image below to open a PDF...
Read more >
How to Write a Proposal and Get What You Want (Free ...
Bonus material: Simple Proposal Format Template + Checklist to help you get started ... Reiterate the main argument and proposal purpose.
Read more >
How to Format A Proposal : The Do's and Dont's | RFPIO
1. DO use serif fonts for paper-based communication. While you may favor other font styles, consider switching to serif fonts which have been...
Read more >
7.6: Proposal Arguments - Humanities LibreTexts
A proposal argument outlines a specific plan of action. It describes why the action is needed and what benefits it will bring.
Read more >
Proposal Arguments - YouTube
Teaching students how to frame their arguments is one of the most ... elements of proposal arguments and includes example thesis statements.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found