Skip to content

Commit ee88de7

Browse files
cleanup(agrs): Adjust older arguments positions and code
1 parent b26d3e1 commit ee88de7

1 file changed

Lines changed: 22 additions & 24 deletions

File tree

src/options/args.rs

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -80,30 +80,6 @@ fn general_args(cmd: Command) -> Command {
8080
"Hides borders and use a cleaner look. Keeping only the separator borders visible.",
8181
);
8282

83-
let disable_click = Arg::new("disable_click")
84-
.long("disable_click")
85-
.action(ArgAction::SetTrue)
86-
.help("Disables mouse clicks.")
87-
.long_help("Disables mouse clicks from interacting with the program.");
88-
89-
let hide_table_gap = Arg::new("hide_table_gap")
90-
.long("hide_table_gap")
91-
.action(ArgAction::SetTrue)
92-
.help("Hides spacing between table headers and entries.")
93-
.long_help("Hides the spacing between table headers and entries.");
94-
95-
let hide_time = Arg::new("hide_time")
96-
.long("hide_time")
97-
.action(ArgAction::SetTrue)
98-
.help("Hides the time scale.")
99-
.long_help("Completely hides the time scale from being shown.");
100-
101-
let show_table_scroll_position = Arg::new("show_table_scroll_position")
102-
.long("show_table_scroll_position")
103-
.action(ArgAction::SetTrue)
104-
.help("Shows the scroll position tracker in table widgets.")
105-
.long_help("Shows the list scroll position tracker in the widget title for table widgets.");
106-
10783
let config_location = Arg::new("config_location")
10884
.short('C')
10985
.long("config")
@@ -117,6 +93,12 @@ fn general_args(cmd: Command) -> Command {
11793
)
11894
.value_hint(ValueHint::AnyPath);
11995

96+
let disable_click = Arg::new("disable_click")
97+
.long("disable_click")
98+
.action(ArgAction::SetTrue)
99+
.help("Disables mouse clicks.")
100+
.long_help("Disables mouse clicks from interacting with bottom.");
101+
120102
let default_time_value = Arg::new("default_time_value")
121103
.short('t')
122104
.long("default_time_value")
@@ -202,6 +184,16 @@ fn general_args(cmd: Command) -> Command {
202184
.help("Expand the default widget upon starting the app.")
203185
.long_help("Expand the default widget upon starting the app. This flag has no effect in basic mode (--basic).");
204186

187+
let hide_table_gap = Arg::new("hide_table_gap")
188+
.long("hide_table_gap")
189+
.action(ArgAction::SetTrue)
190+
.help("Hides spacing between table headers and entries.");
191+
192+
let hide_time = Arg::new("hide_time")
193+
.long("hide_time")
194+
.action(ArgAction::SetTrue)
195+
.help("Hides the time scale from being shown.");
196+
205197
let rate = Arg::new("rate")
206198
.short('r')
207199
.long("rate")
@@ -226,6 +218,12 @@ fn general_args(cmd: Command) -> Command {
226218
may result in higher memory usage."
227219
);
228220

221+
let show_table_scroll_position = Arg::new("show_table_scroll_position")
222+
.long("show_table_scroll_position")
223+
.action(ArgAction::SetTrue)
224+
.help("Shows the scroll position tracker in table widgets.")
225+
.long_help("Shows the list scroll position tracker in the widget title for table widgets.");
226+
229227
let time_delta = Arg::new("time_delta")
230228
.short('d')
231229
.long("time_delta")

0 commit comments

Comments
 (0)