Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Commit

Permalink
add verbose to static
Browse files Browse the repository at this point in the history
  • Loading branch information
0xF6 committed Jul 8, 2019
1 parent 727d3a1 commit 65afc35
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
8 changes: 5 additions & 3 deletions Rune/Host.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ private static readonly Dictionary<string, Func<string[], int>> s_builtIns
["new-scheme"] = SchemeCommand.Run,
["install"] = InstallCommand.Run,
["clear"] = ClearCommand.Run,
["remove"] = RemoveCommand.Run
["remove"] = RemoveCommand.Run,
["restore"] = RestoreCommand.Run
};
public static int Main(string[] args)
{
Expand Down Expand Up @@ -63,16 +64,17 @@ private static void InitializeProcess()
};
}

internal static bool Verbose { get; set; }

internal static int ProcessArgs(string[] args)
{
bool? verbose = null;
var success = true;
var command = string.Empty;
var lastArg = 0;
for (; lastArg < args.Length; lastArg++)
{
if (IsArg(args[lastArg], "d", "diagnostics"))
verbose = true;
Verbose = true;
else if (IsArg(args[lastArg], "version"))
{
PrintVersion();
Expand Down
4 changes: 2 additions & 2 deletions Rune/Rune.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<ApplicationIcon>resource\icon.ico</ApplicationIcon>
<StartupObject></StartupObject>
<Version>0.47.246</Version>
<AssemblyVersion>0.47.293.0</AssemblyVersion>
<FileVersion>0.47.293.0</FileVersion>
<AssemblyVersion>0.47.299.0</AssemblyVersion>
<FileVersion>0.47.299.0</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
8 changes: 6 additions & 2 deletions samples/vector/vector.rune.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"start": "echo 1"
},
"name": "vector",
"version": "0.0",
"author": "Yuuki Wesp"
"version": "1.0",
"author": "Yuuki Wesp",
"deps": {
"terminal": "^0.0.0.0",
"beep": "^0.0.0.0"
}
}

0 comments on commit 65afc35

Please sign in to comment.