Skip to content

Commit

Permalink
Add new command line options
Browse files Browse the repository at this point in the history
  • Loading branch information
Rem0o committed Sep 9, 2024
1 parent 53ce8d2 commit 7a29e63
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion src/reactPages/docs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,29 @@ const m: DocSection = {
}
};


const r: DocSection = {
key: "-r --refresh",
render: () => {
return (
<>
Force the program to refresh its sensors.
</>
);
}
};

const e: DocSection = {
key: "-e --exit",
render: () => {
return (
<>
Force the currently running instance to exit.
</>
);
}
};

const controlSections: DocSection[] = [speedPairing, calibration];

const gpuSections: DocSection[] = [nvidia, amd];
Expand All @@ -79,7 +102,7 @@ const customSensorSections: DocSection[] = [
offsetSensor
];

const commandLineArgumentSections: DocSection[] = [c, w, m];
const commandLineArgumentSections: DocSection[] = [c, w, m, r, e];

const ScrollToSection = (
refs: React.MutableRefObject<Map<string, HTMLElement | null>>,
Expand Down

0 comments on commit 7a29e63

Please sign in to comment.