mirror of
https://github.com/RubyMetric/chsrc
synced 2025-08-14 08:29:32 +08:00
Add argument option
This commit is contained in:
parent
16d643a8ee
commit
2d358fbc6a
@ -1092,9 +1092,9 @@ chsrc_confirm_source (Source_t *source)
|
||||
|
||||
|
||||
Source_t
|
||||
chsrc_yield_source_and_confirm (Target_t t)
|
||||
chsrc_yield_source_and_confirm (Target_t *t, char *option)
|
||||
{
|
||||
Source_t source = chsrc_yield_source(&t);
|
||||
Source_t source = chsrc_yield_source(t, option);
|
||||
chsrc_confirm_source(&source);
|
||||
return source;
|
||||
}
|
||||
|
@ -73,8 +73,8 @@ wr_flathub_getsrc (char *option)
|
||||
void
|
||||
wr_flathub_setsrc (char *option)
|
||||
{
|
||||
// chsrc_yield_source_and_confirm (wr_flathub);
|
||||
Source_t source;
|
||||
use_this(wr_flathub);
|
||||
Source_t source = chsrc_yield_source_and_confirm (this, option);
|
||||
|
||||
chsrc_alert2 ("若出现问题,可先调用以下命令:");
|
||||
char *note = xy_strjoin (3,
|
||||
|
Loading…
x
Reference in New Issue
Block a user