Skip to content

FIX: KVConfigLoader could not handle lone dashes('-') as extra arguments#365

Merged
minrk merged 6 commits intoipython:masterfrom
ankostis:dashargs
Jan 30, 2017
Merged

FIX: KVConfigLoader could not handle lone dashes('-') as extra arguments#365
minrk merged 6 commits intoipython:masterfrom
ankostis:dashargs

Conversation

@ankostis
Copy link
Copy Markdown
Contributor

KeyValueConfigLoader.load_config() was considering lone dash(-) args as invalids
(these are frequently used to denote STDIN).

  • Fixed and added a TCs on App & Loader.
  • Minor refactorings 7 pep8 on the method fixed.

@ankostis
Copy link
Copy Markdown
Contributor Author

Added a rather unrelated commit for site-docs:
added more project coordinates (links to other site) that is annoying not to have on every landing page of this project.
Actually If given the permission I would port a9680b5 also on the top of README.md so that the links are visible in GitHub landing page.

if not item:
# I.e. it was a lone '-' used for denoting STDIN, or '---'.
self.extra_args.append('-')
continue
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.

duplicated block?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, duplicate code.
Also previously was replacing user-arg always with '-' - now adds user-arg verbatim, even if it is 3 or more dashes concatenated.

@minrk minrk added this to the 5.0 milestone Jan 30, 2017
@minrk minrk merged commit b4cae0c into ipython:master Jan 30, 2017
@ankostis ankostis deleted the dashargs branch May 3, 2017 11:00
@Carreau Carreau added 5.0-re-review Need to re-review for potential API impact changes. 5.0-no-incidence change that has noincidence on 5.0 compat (eg: doc) and removed 5.0-re-review Need to re-review for potential API impact changes. labels Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5.0-no-incidence change that has noincidence on 5.0 compat (eg: doc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants