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: lib/json/ld/writer.rb
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -76,14 +76,14 @@ def self.options
76
76
symbol: :compactArrays,
77
77
datatype: TrueClass,
78
78
control: :checkbox,
79
-
on: ["--compact-arrays"],
80
-
description: "Replaces arrays with just one element with that element during compaction."){true},
79
+
on: ["--[no-]compact-arrays"],
80
+
description: "Replaces arrays with just one element with that element during compaction. Default is `true` use --no-compact-arrays to disable."){|arg| arg},
81
81
RDF::CLI::Option.new(
82
82
symbol: :compactToRelative,
83
83
datatype: TrueClass,
84
84
control: :checkbox,
85
-
on: ["--compact-to-relative"],
86
-
description: "Creates document relative IRIs when compacting, if `true`, otherwise leaves expanded. Default is `true` use --no-compact-to-relative to disable."){true},
85
+
on: ["--[no-]compact-to-relative"],
86
+
description: "Creates document relative IRIs when compacting, if `true`, otherwise leaves expanded. Default is `true` use --no-compact-to-relative to disable."){|arg| arg},
87
87
RDF::CLI::Option.new(
88
88
symbol: :context,
89
89
datatype: RDF::URI,
@@ -100,14 +100,14 @@ def self.options
100
100
symbol: :explicit,
101
101
datatype: TrueClass,
102
102
control: :checkbox,
103
-
on: ["--explicit"],
104
-
description: "Only include explicitly declared properties in output (false)"){|arg| RDF::URI(arg)},
103
+
on: ["--[no-]explicit"],
104
+
description: "Only include explicitly declared properties in output (false)"){|arg| arg},
105
105
RDF::CLI::Option.new(
106
106
symbol: :omitDefault,
107
107
datatype: TrueClass,
108
108
control: :checkbox,
109
-
on: ["--omitDefault"],
110
-
description: "Omit missing properties from output (false)"){|arg| RDF::URI(arg)},
109
+
on: ["--[no-]omitDefault"],
110
+
description: "Omit missing properties from output (false)"){|arg| arg},
111
111
RDF::CLI::Option.new(
112
112
symbol: :processing_mode,
113
113
datatype: %w(json-ld-1.0json-ld-1.1),
@@ -118,20 +118,20 @@ def self.options
118
118
symbol: :requireAll,
119
119
datatype: TrueClass,
120
120
control: :checkbox,
121
-
on: ["--requireAll"],
122
-
description: "Require all properties to match (true)"){|arg| RDF::URI(arg)},
121
+
on: ["--[no-]requireAll"],
122
+
description: "Require all properties to match (true). Default is `true` use --no-compact-to-relative to disable."){|arg| arg},
123
123
RDF::CLI::Option.new(
124
124
symbol: :stream,
125
125
datatype: TrueClass,
126
126
control: :checkbox,
127
-
on: ["--stream"],
128
-
description: "Do not attempt to optimize graph presentation, suitable for streaming large graphs."){true},
127
+
on: ["--[no-]stream"],
128
+
description: "Do not attempt to optimize graph presentation, suitable for streaming large graphs."){|arg| arg},
129
129
RDF::CLI::Option.new(
130
130
symbol: :useRdfType,
131
131
datatype: TrueClass,
132
132
control: :checkbox,
133
-
on: ["--use-rdf-type"],
134
-
description: "Treat `rdf:type` like a normal property instead of using `@type`."){true},
133
+
on: ["--[no-]use-rdf-type"],
134
+
description: "Treat `rdf:type` like a normal property instead of using `@type`."){|arg| arg},
0 commit comments