コード例 #1
0
        protected override void OnObjectReceived(object o)
        {
            CommandLineArgumentsDefinition def = new CommandLineArgumentsDefinition(typeof(FilterAction));

            def.FindMatchingArgument("FilterTarget").RevivedValueOverride = o;
            Args.InvokeMain(def, CmdLineArgs.ToArray());
        }
コード例 #2
0
ファイル: Filter.cs プロジェクト: remcoros/PowerArgs
        protected override void OnObjectReceived(object o)
        {
            CommandLineArgumentsDefinition def = new CommandLineArgumentsDefinition(typeof(FilterAction));
            var arg = def.FindMatchingArgument("FilterTarget");

            def.Metadata.Add(new ArgumentOverrideHook(arg, o));
            Args.InvokeMain(def, CmdLineArgs.ToArray());
        }