Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
expand documention on handling --help
Browse files Browse the repository at this point in the history
  • Loading branch information
lsqproduction committed Jan 10, 2023
1 parent 580324e commit 8656f79
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ if (
const helpIndex = inputStrings.indexOf("--help");

if (helpIndex !== -1) {
//remove `--help` from array
inputStrings.splice(helpIndex, 1);
//insert `help` in first position
inputStrings.unshift("help");
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/dashboard/src/contexts/DashContext/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const initialState: State = {
}
};

//To-do: set-analytics in reducer
export const reducer = (state: State, action: Action): State => {
const { type, data } = action;
switch (type) {
Expand Down
2 changes: 2 additions & 0 deletions packages/dashboard/src/contexts/DashContext/types/Action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import type { ReceivedMessageLifecycle } from "@truffle/dashboard-message-bus-cl
import type { Message } from "@truffle/dashboard-message-bus-common";
import type { State } from "src/contexts/DashContext/types";

//To-do: add set-analytics ActionType
//To-do: add interface for SetAnalyticAction
export type ActionType =
| "set-decoder"
| "set-chain-info"
Expand Down

0 comments on commit 8656f79

Please sign in to comment.