@@ -35,6 +35,10 @@ pub const ARG_FORMAT: &str = "format";
3535pub const ARG_TARGET : & str = "target" ;
3636/// Command line argument `--source`.
3737pub const ARG_SOURCE : & str = "source" ;
38+ /// Command line flag: `--skip-script-verify`.
39+ pub const ARG_SKIP_SCRIPT_VERIFY : & str = "skip-script-verify" ;
40+ /// Command line flag: `--skip-all-verify`.
41+ pub const ARG_SKIP_ALL_VERIFY : & str = "skip-all-verify" ;
3842/// Command line argument `--data`.
3943pub const ARG_DATA : & str = "data" ;
4044/// Command line argument `--list-chains`.
@@ -385,14 +389,28 @@ fn export() -> Command {
385389}
386390
387391fn import ( ) -> Command {
388- Command :: new ( CMD_IMPORT ) . about ( "Import CKB data" ) . arg (
389- Arg :: new ( ARG_SOURCE )
390- . index ( 1 )
391- . value_name ( "path" )
392- . value_parser ( clap:: builder:: PathBufValueParser :: new ( ) )
393- . required ( true )
394- . help ( "Specify the exported data path" ) ,
395- )
392+ Command :: new ( CMD_IMPORT )
393+ . about ( "Import CKB data" )
394+ . arg (
395+ Arg :: new ( ARG_SOURCE )
396+ . index ( 1 )
397+ . value_name ( "path" )
398+ . value_parser ( clap:: builder:: PathBufValueParser :: new ( ) )
399+ . required ( true )
400+ . help ( "Specify the exported data path" ) ,
401+ )
402+ . arg (
403+ //
404+ Arg :: new ( ARG_SKIP_SCRIPT_VERIFY )
405+ . required ( false )
406+ . help ( "Skip script verification during import" ) ,
407+ )
408+ . arg (
409+ //
410+ Arg :: new ( ARG_SKIP_ALL_VERIFY )
411+ . required ( false )
412+ . help ( "Skip all verifications during import" ) ,
413+ )
396414}
397415
398416fn migrate ( ) -> Command {
0 commit comments