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

%pastebin arguments get silently dropped if they are out of order #13059

Open
2 tasks
MrMino opened this issue Jul 14, 2021 · 0 comments
Open
2 tasks

%pastebin arguments get silently dropped if they are out of order #13059

MrMino opened this issue Jul 14, 2021 · 0 comments
Assignees

Comments

@MrMino
Copy link
Member

MrMino commented Jul 14, 2021

%pastebin 1 -d "This is a test"

Intuitively, the above should result in either:

  • An error, since -d "This is a test" should come first.
  • A dpaste.org entry where the description is set to "This is a test".

Instead, it silently drops the arguments.

  • Find which builtin magics do this sort of thing (Magics.parse_options is used for the arguments in %pastebin - look for the ones that use it).
  • Fix them - preferably by enabling unordered arguments, whenever possible.

Found out during the review of #13056.

@MrMino MrMino self-assigned this Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant