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.

--release switch as a shortcut for -c Release

See original GitHub issue

Since most projects will only ever use the Release and Debug configurations, I suggest creating shortcut switches to avoid typing them out in full on the console:

--release shall be allowed everywhere -c Release is currently allowed. similarly, --debug can be a shorthand way of specifying -c Debug.

Benefits:

  • Faster to type
  • Completion support
  • Release configuration is commonly needed
  • Typo mistakes are easy to make, especially since casing differences can lead to confusing build errors on linux (-c Release vs -c release).

Does this seem reasonable? Any feedback?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
svickcommented, May 27, 2018

Completion support

Note that -c does have completion support: if I type dotnet publish -c R<tab>, it completes to dotnet publish -c RELEASE.

Though it doesn’t understand custom configurations, DEBUG and RELEASE are hardcoded values.

0reactions
dasMullicommented, Aug 3, 2018

PR is out to complete -c based on the project file: https://github.com/dotnet/cli/pull/9788

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keyboard shortcuts - Visual Studio (Windows)
Call stack, Ctrl+Alt+C, Debug.CallStack ; Delete all breakpoints, Ctrl+Shift+F9, Debug.DeleteAllBreakpoints ; Launch, Alt+F2, Debug.DiagnosticsHub ...
Read more >
Mac keyboard shortcuts
For example, to use Command-C (copy), press and hold the Command key, then the C key, then release both keys. Mac menus and...
Read more >
Windows Basics: Keyboard Shortcuts in Windows
Using shortcuts · Ctrl+X: Cut the selected text. Ctrl+C: Copy the selected text. Ctrl+V · Ctrl+Alt+Delete: Force an unresponsive or frozen program to...
Read more >
Default keyboard shortcuts for Illustrator
Find out how to use keyboard shortcuts to quickly navigate Adobe Illustrator.
Read more >
Keyboard Shortcuts
1. When Input-releasing Shortcut is not ticked, pressing Ctrl + Alt will allow you to switch app on the remote computer. · 2....
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