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: README.md
+14-8Lines changed: 14 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,16 +148,19 @@ This feature can used to both create shortcuts for specific (long) named argumen
148
148
$ rak --ignorecase --ignoremark --save=im
149
149
Saved configuration for'im'
150
150
151
+
# same as --ignorecase --ignoremark
152
+
$ rak foo --im
153
+
151
154
$ rak --follow-symlinks --save=fs
152
155
Saved configuration for'fs'
153
156
154
157
$ rak --save=foo
155
158
Removed configuration for'foo'
156
159
```
157
160
158
-
See `--with` to add saved named arguments to a query. Please note that no validity checking on the named arguments is being performed at the moment of saving, as validity may depend on other arguments having been specified.
161
+
Any saved named arguments can be accessed as if it is a standard named boolean argument. Please note that no validity checking on the named arguments is being performed at the moment of saving, as validity may depend on other arguments having been specified.
159
162
160
-
To remove a saved set of named arguments, use `--save` as the only argument.
163
+
To remove a saved set of named arguments, use `--save` as the only named argument.
161
164
162
165
--sum --summary-if-larger-than
163
166
------------------------------
@@ -179,15 +182,18 @@ Indicate whether lines that have the pattern, should have any whitespace at the
179
182
180
183
If the only argument, shows the name and version of the script, and the system it is running on.
181
184
182
-
--with
183
-
------
185
+
CREATING YOUR OWN NAMED ARGUMENTS
186
+
=================================
187
+
188
+
You can use the `--save` named argument to save a set of named arguments and than later access it with the given name:
184
189
185
190
```bash
186
-
# run search with --ignorecase --ignoremark --follow-symlinks
187
-
$ rak foo --with=im,fs
188
-
```
191
+
$ rak --ignorecase --ignoremark --save=im
192
+
Saved configuration for'im'
189
193
190
-
Add all named arguments previously saved with `--save` with the given tag(s) from the configuration file (`~/.rak-config.json`). Multiple tags can be specified, separated by commas. See `--save` to saved named arguments with a tag.
0 commit comments