Changeset e4d9ec127cb8…
Parent dd227daa1d04…
by Daniel Pupek
Changes to 3 files · Browse files at e4d9ec127cb8 Showing diff from parent dd227daa1d04 Diff from another changeset...
@@ -1,6 +1,6 @@ - <?xml version="1.0" encoding="utf-8" ?>
+<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
- <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
+ <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
</startup>
-</configuration>
\ No newline at end of file+ </configuration>
|
@@ -9,8 +9,9 @@ <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Brail2Razor</RootNamespace>
<AssemblyName>Brail2Razor</AssemblyName>
- <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
+ <TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
|
@@ -6,6 +6,7 @@ using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Fclp;
+using Fclp.Internals;
namespace Brail2Razor
{
@@ -168,7 +169,7 @@ {
var p = new FluentCommandLineParser();
- p.SetupHelp("?", "help")
+ p.SetupHelp("?", "help").UseForEmptyArgs().WithHeader("Brail to Razor converter for NexPort Campus specific Brail views.")
.Callback(text => Console.WriteLine(text));
p.Setup<string>('d', "directory")
@@ -193,7 +194,11 @@
var result = p.Parse(args);
-
+ if (result.HelpCalled)
+ {
+ return;
+ }
+
if (result.HasErrors || (!File.Exists(_singleFile) && !Directory.Exists(_directory)))
{
Console.WriteLine(result.ErrorText);
@@ -203,10 +208,7 @@
return;
}
- if (result.HelpCalled)
- {
- return;
- }
+
Console.WriteLine("Starting brail to razor conversion of directory {0}", _directory);
string[] files;
|
Loading...