mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-08 19:54:13 +08:00
Add reset mode for later use
This commit is contained in:
parent
bbc773ee36
commit
34cb47fbfa
@ -21,6 +21,7 @@
|
|||||||
static int chsrc_get_cpucore ();
|
static int chsrc_get_cpucore ();
|
||||||
|
|
||||||
bool ProgMode_CMD_Measure = false;
|
bool ProgMode_CMD_Measure = false;
|
||||||
|
bool ProgMode_CMD_Reset = false;
|
||||||
|
|
||||||
|
|
||||||
/* 命令行选项 */
|
/* 命令行选项 */
|
||||||
|
@ -793,6 +793,7 @@ main (int argc, char const *argv[])
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ProgMode_CMD_Reset = true;
|
||||||
target = argv[cli_arg_Target_pos];
|
target = argv[cli_arg_Target_pos];
|
||||||
matched = get_target (target, TargetOp_Reset_Source, NULL);
|
matched = get_target (target, TargetOp_Reset_Source, NULL);
|
||||||
if (!matched) goto not_matched;
|
if (!matched) goto not_matched;
|
||||||
|
@ -85,9 +85,6 @@ pl_ruby_setsrc (char *option)
|
|||||||
chsrc_run (cmd, RunOpt_No_Last_New_Line);
|
chsrc_run (cmd, RunOpt_No_Last_New_Line);
|
||||||
|
|
||||||
chsrc_conclude (&source, chsrc_type);
|
chsrc_conclude (&source, chsrc_type);
|
||||||
|
|
||||||
// chsrc_note2 ("Ruby的镜像源目前仅有 腾讯软件源,RubyChina 实现正确");
|
|
||||||
// chsrc_note2 ("而其它如Tuna,Bfsu,Ali目前都实现的有问题,请勿使用");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user