You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dotnet-json/Commands/SetCommand.cs
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,14 @@ public class SetCommand : CommandBase, ICommandHandler
12
12
13
13
privateArgument<string>Value=newArgument<string>("value","The value to set"){Arity=ArgumentArity.ExactlyOne};
14
14
15
+
privateOption<bool>Existing=newOption<bool>(new[]{"-e","--existing"},"Only set the value if the key already exists in the json file, otherwise do nothing");
16
+
15
17
publicSetCommand():base("set","set a value in a json file")
0 commit comments