Repository navigation
Replaced PowerArgs with McMaster.Extensions.CommandLineUtils - #1289
Merged
Merged
Conversation
Member
Author
|
When merged, this information should be incorporated into #1287 |
This was referenced Aug 9, 2018
Closed
Member
Author
|
ping @khellang @jrusbatch 🚨 |
khellang
reviewed
Aug 15, 2018
| if (_frameworkName == null) | ||
| { | ||
| // in order to handle the weird behavior of old nuget packages | ||
| // with NET Standard 2.0, we'll use the entry assemblie if possible |
filipw
force-pushed
the
features/new-parsing-lib
branch
from
August 15, 2018 09:39
6c28be6 to
00f98a3
Compare
khellang
approved these changes
Aug 15, 2018
khellang
left a comment
Member
There was a problem hiding this comment.
I think the changes look good, assuming we're fine with the CLI breaking changes. Looks like the AppVeyor build failed for some reason, though.
Member
Author
I personally am, I think this is for the greater good, especially if it's well documented. That said if this is a red flag in your mind, speak up 🤠
I think this is similar to #1277, there is some race condition on the acceptance tests, it passed when I retried. |
Member
|
Yeah, I think the new args are much cleaner and POSIX compliant 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This causes some breaking changes on the exe surface, but I think there is no other way to tackle this. It is really needed because PowerArgs doesn't seem to work with Mono so we have some really critical issues there.
It also allows us to add some sanity to the command line parameters, which I think is quite welcome. What we had before as the arg surface was never really designed for usability, it was just something that we got automatically by plugging in PowerArgs. Regardless, I tried to keep breaking changes to the bare minimum.
Here is the overview. The main difference is that the "long names" are now
--instead of-(which, if you ask me, is much better anyway). The shortnames are all the same. Another difference is that we now have ascriptcs installcommand to deal with installation tasks.scriptcs -script <name>scriptcs -scriptname <name>scriptcs --scriptname <name>scriptcs <name>scriptcs -rscriptcs -replscriptcs --replscriptcsscriptcs -e <code>scriptcs -eval <code>scriptcs --eval <code>scriptcs -?scriptcs -helpscriptcs --helpscriptcs -vscriptcs -versionscriptcs --versionscriptcs <name> -dscriptcs <name> -debugscriptcs <name> --debugscriptcs <name> -cscriptcs <name> -cachescriptcs <name> --cachescriptcs <name> -log <level>scriptcs <name> -loglevel <level>scriptcs <name> --loglevel <level>scriptcs <name> -wscriptcs <name> -watchscriptcs <name> --watchscriptcs <name> -m <module1>,<module2>scriptcs <name> -modules <module1>,<module2>scriptcs <name> --modules <module1>,<module2>scriptcs <name> -co <path>scriptcs <name> -config <path>scriptcs <name> --config <path>scriptcs <name> -o <path>scriptcs <name> -output <path>scriptcs <name> --output <path>scriptcs -install <package name>scriptcs install <package name>scriptcs -i <package name>scriptcs install <package name>scriptcs -install <package name> -prescriptcs install <package name> -prescriptcs -i <package name> -prescriptcs install <package name> -prescriptcs -install <package name> -allowprereleasescriptcs install <package name> --allowprereleasescriptcs -i <package name> -allowprereleasescriptcs install <package name> --allowprereleasescriptcs -install <package name> -gscriptcs install <package name> -gscriptcs -i <package name> -gscriptcs install <package name> -gscriptcs -install <package name> -globalscriptcs install <package name> --globalscriptcs -i <package name> -globalscriptcs install <package name> --globalscriptcs -savescriptcs install --savescriptcs -sscriptcs install -sscriptcs -cleanscriptcs install --cleanscriptcs -clscriptcs install -clFixes #1188
Fixes #840