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

Implement proper argument parsing #910

Closed
granicz opened this issue Feb 14, 2018 · 3 comments
Closed

Implement proper argument parsing #910

granicz opened this issue Feb 14, 2018 · 3 comments

Comments

@granicz
Copy link
Member

granicz commented Feb 14, 2018

When I run wsfsc.exe without any arguments, I get this non-friendly output:

C:\>wsfsc.exe
WebSharper error FS9001: Global error 'Value cannot be null.↔Parameter name: path1' at    at System.IO.Path.Combine(String path1, String path2)↔   at WebSharper.FSha
rp.Program.compileMain$cont@260(String[] argv, Unit unitVar)↔   at WebSharper.FSharp.Program.main(String[] argv)

This needs to give me a nice argument listing with a version information about the underlying compilers.

@Jand42 Jand42 self-assigned this Feb 19, 2018
@Jand42
Copy link
Member

Jand42 commented Feb 19, 2018

Also:

  • Make sure to print argument parsing errors in a clean way (single helpful message, no stack trace)
  • If there are no --project arguments specified, look for a single .fsproj/.csproj
  • Do not fail on having multiple --ws arguments, use the last one for project type (multiples can happen if a NuGet update does not uninstall Import for targets file correctly.)
  • Add --help options to print WebSharper compilation arguments and also unpack/html commands inherited from WebSharper 2/3

@Jand42
Copy link
Member

Jand42 commented Feb 20, 2018

TODO:

  • Include used version of Roslyn/FCS in info

@Tarmil
Copy link
Member

Tarmil commented Feb 22, 2018

I'm implementing the Roslyn/FCS info, plus this:

  • more consistent syntax for boolean flags: --foo or --foo+ sets to true, --foo- sets to false (like fsc).

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

3 participants