mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
First hack at setting up Mono.Options
This commit is contained in:
@@ -3,13 +3,32 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Mono.Options;
|
||||
|
||||
namespace Update
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
static int Main(string[] args)
|
||||
{
|
||||
if (args.Any(x => x.StartsWith("/squirrel", StringComparison.OrdinalIgnoreCase))) {
|
||||
// NB: We're marked as Squirrel-aware, but we don't want to do
|
||||
// anything in response to these events
|
||||
return 0;
|
||||
}
|
||||
|
||||
var opts = new OptionSet() {
|
||||
{ "h|?|help", v => ShowHelp() }
|
||||
};
|
||||
|
||||
opts.Parse(args);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void ShowHelp()
|
||||
{
|
||||
Console.WriteLine("Help!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user