Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/commands/scanner/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default class Run extends ScannerRunCommand {
public static examples = [
getMessage(BundleName.Run, 'examples')
];
public static readonly invocation = 'scanner run';

// This defines the flags accepted by this command. The key is the longname, the char property is the shortname,
// and summary and description is what's printed when the -h/--help flag is supplied.
Expand Down
1 change: 1 addition & 0 deletions src/commands/scanner/run/dfa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default class Dfa extends ScannerRunCommand {
public static examples = [
getMessage(BundleName.RunDfa, 'examples')
];
public static readonly invocation = 'scanner run dfa';

// This defines the flags accepted by this command.
// NOTE: Unlike the other classes that extend ScannerCommand, this class has no flags for specifying rules. This is
Expand Down
2 changes: 1 addition & 1 deletion src/lib/actions/RuleDescribeAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class RuleDescribeAction implements Action {
return rules.map(r => {
const styledRule: DescribeStyledRule = {
...r,
runWith: r.isDfa ? Dfa.id : Run.id,
runWith: r.isDfa ? Dfa.invocation : Run.invocation,
isPilot: r.isPilot,
enabled: enabledEngineNames.has(r.engine)
};
Expand Down