|
209 | 209 | <a href="#209" id="209">209</a>
|
210 | 210 | <a href="#210" id="210">210</a>
|
211 | 211 | <a href="#211" id="211">211</a>
|
212 |
| -<a href="#212" id="212">212</a> |
213 |
| -<a href="#213" id="213">213</a> |
214 |
| -<a href="#214" id="214">214</a> |
215 |
| -<a href="#215" id="215">215</a> |
216 | 212 | </pre><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.
|
217 | 213 | // *
|
218 | 214 | // * (c) Alex Lyon <arcterus@mail.com>
|
|
230 | 226 | <span class="kw">use </span>clap::{crate_version, Arg, ArgAction, Command};
|
231 | 227 | <span class="kw">use </span>uucore::{
|
232 | 228 | error::{set_exit_code, UClapError, UResult, USimpleError, UUsageError},
|
233 |
| - format_usage, show_error, |
| 229 | + format_usage, help_about, help_usage, show_error, |
234 | 230 | };
|
235 | 231 |
|
236 | 232 | <span class="kw">pub mod </span>options {
|
237 | 233 | <span class="kw">pub static </span>ADJUSTMENT: <span class="kw-2">&</span>str = <span class="string">"adjustment"</span>;
|
238 | 234 | <span class="kw">pub static </span>COMMAND: <span class="kw-2">&</span>str = <span class="string">"COMMAND"</span>;
|
239 | 235 | }
|
240 | 236 |
|
241 |
| -<span class="kw">const </span>ABOUT: <span class="kw-2">&</span>str = <span class="string">"\ |
242 |
| - Run COMMAND with an adjusted niceness, which affects process scheduling. \ |
243 |
| - With no COMMAND, print the current niceness. Niceness values range from at \ |
244 |
| - least -20 (most favorable to the process) to 19 (least favorable to the \ |
245 |
| - process)."</span>; |
246 |
| -<span class="kw">const </span>USAGE: <span class="kw-2">&</span>str = <span class="string">"{} [OPTIONS] [COMMAND [ARGS]]"</span>; |
| 237 | +<span class="kw">const </span>ABOUT: <span class="kw-2">&</span>str = <span class="macro">help_about!</span>(<span class="string">"nice.md"</span>); |
| 238 | +<span class="kw">const </span>USAGE: <span class="kw-2">&</span>str = <span class="macro">help_usage!</span>(<span class="string">"nice.md"</span>); |
247 | 239 |
|
248 | 240 | <span class="kw">fn </span>is_prefix_of(maybe_prefix: <span class="kw-2">&</span>str, target: <span class="kw-2">&</span>str, min_match: usize) -> bool {
|
249 | 241 | <span class="kw">if </span>maybe_prefix.len() < min_match || maybe_prefix.len() > target.len() {
|
|
0 commit comments