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.

[feature request] "Cold" parse method

See original GitHub issue

I’d like to be able to parse argv just to get parsed options without actually executing registered commands. IMHO it’s slightly unintuitive API that parse method also executes stuff, I’d argue that it should only parse and nothing else, but ofc that would be a breaking change, so I’m merely asking if there is a possibility to add a “cold” version of this method?

I can work on it if we figure out what it should be called :p

reference https://github.com/developit/microbundle/pull/62/files#r163778889

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Andaristcommented, Mar 1, 2018

Cool, thanks for this 🎉 Gonna remove my hacks from microbundle later thanks to this.

1reaction
tunnckoCorecommented, Mar 1, 2018

Yeah. Probably renaming current .parse to .run and the new .parse to be that cold parse which just return args and handler.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to correctly parse incoming HTTP requests - Stack Overflow
i've created an C++ application using WinSck, which has a small (handles just a few features which i ...
Read more >
Scraping Responses - Roach PHP
This response object is what gets passed to the parse method we specified when dispatching a request ( parse , by default). use...
Read more >
Preview Features in .NET 6 - Generic Math
A preview of the new generic math and static abstracts in interfaces features with .NET 6.
Read more >
Cool Things You Can Do With Pydantic - Medium
Pydantic is a useful library for data parsing and validation. It coerces input types to the declared type (using type hints), ...
Read more >
Fetching and Parsing Data from the Web with OpenRefine
Example 2 demonstrated Refine's fetch function with a simple web API, essentially utilizing URL patterns to request information from a server.
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