• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1`find` is an example of position-sensitive flags
2
3```console
4$ find --help
5A simple to use, efficient, and full-featured Command Line Argument Parser
6
7Usage: find[EXE] [OPTIONS]
8
9Options:
10  -h, --help     Print help
11  -V, --version  Print version
12
13TESTS:
14      --empty        File is empty and is either a regular file or a directory
15      --name <NAME>  Base of file name (the path with the leading directories removed) matches shell
16                     pattern pattern
17
18OPERATORS:
19  -o, --or   expr2 is not evaluate if exp1 is true
20  -a, --and  Same as `expr1 expr1`
21
22$ find --empty -o --name .keep
23[
24    (
25        "empty",
26        Bool(
27            true,
28        ),
29    ),
30    (
31        "or",
32        Bool(
33            true,
34        ),
35    ),
36    (
37        "name",
38        String(
39            ".keep",
40        ),
41    ),
42]
43
44```
45
46