forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bc.ts
44 lines (44 loc) · 1.03 KB
/
bc.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
const completionSpec: Fig.Spec = {
name: "bc",
description: "An arbitrary precision calculator language",
parserDirectives: {
optionsMustPrecedeArguments: true,
},
options: [
{
name: ["--help", "-h"],
description: "Print the usage and exit",
},
{
name: ["--interactive", "-i"],
description: "Force interactive mode",
},
{
name: ["--mathlib", "-l"],
description: "Define the standard math library",
},
{
name: ["--warn", "-w"],
description: "Give warnings for extensions to POSIX bc",
},
{
name: ["--standard", "-s"],
description: "Process exactly the POSIX bc language",
},
{
name: ["--quiet", "-q"],
description: "Do not print the normal GNU bc welcome",
},
{
name: ["--version", "-v"],
description: "Print the version number and copyright and quit",
},
],
args: {
name: "file",
isOptional: true,
isVariadic: true,
template: "filepaths",
},
};
export default completionSpec;