@@ -11,55 +11,55 @@ actor! {
1111 #[ derive( Debug ) ]
1212 pub struct Generator {
1313 /// The name of the product, for display
14- #[ clap ( value_name = "NAME" ) ]
14+ #[ arg ( value_name = "NAME" ) ]
1515 product_name: String = "Product" ,
1616
1717 /// The name of the component, distinct from other installed components
18- #[ clap ( value_name = "NAME" ) ]
18+ #[ arg ( value_name = "NAME" ) ]
1919 component_name: String = "component" ,
2020
2121 /// The name of the package, tarball
22- #[ clap ( value_name = "NAME" ) ]
22+ #[ arg ( value_name = "NAME" ) ]
2323 package_name: String = "package" ,
2424
2525 /// The directory under lib/ where the manifest lives
26- #[ clap ( value_name = "DIR" ) ]
26+ #[ arg ( value_name = "DIR" ) ]
2727 rel_manifest_dir: String = "packagelib" ,
2828
2929 /// The string to print after successful installation
30- #[ clap ( value_name = "MESSAGE" ) ]
30+ #[ arg ( value_name = "MESSAGE" ) ]
3131 success_message: String = "Installed." ,
3232
3333 /// Places to look for legacy manifests to uninstall
34- #[ clap ( value_name = "DIRS" ) ]
34+ #[ arg ( value_name = "DIRS" ) ]
3535 legacy_manifest_dirs: String = "" ,
3636
3737 /// Directory containing files that should not be installed
38- #[ clap ( value_name = "DIR" ) ]
38+ #[ arg ( value_name = "DIR" ) ]
3939 non_installed_overlay: String = "" ,
4040
4141 /// Path prefixes of directories that should be installed/uninstalled in bulk
42- #[ clap ( value_name = "DIRS" ) ]
42+ #[ arg ( value_name = "DIRS" ) ]
4343 bulk_dirs: String = "" ,
4444
4545 /// The directory containing the installation medium
46- #[ clap ( value_name = "DIR" ) ]
46+ #[ arg ( value_name = "DIR" ) ]
4747 image_dir: String = "./install_image" ,
4848
4949 /// The directory to do temporary work
50- #[ clap ( value_name = "DIR" ) ]
50+ #[ arg ( value_name = "DIR" ) ]
5151 work_dir: String = "./workdir" ,
5252
5353 /// The location to put the final image and tarball
54- #[ clap ( value_name = "DIR" ) ]
54+ #[ arg ( value_name = "DIR" ) ]
5555 output_dir: String = "./dist" ,
5656
5757 /// The profile used to compress the tarball.
58- #[ clap ( value_name = "FORMAT" , default_value_t) ]
58+ #[ arg ( value_name = "FORMAT" , default_value_t) ]
5959 compression_profile: CompressionProfile ,
6060
6161 /// The formats used to compress the tarball
62- #[ clap ( value_name = "FORMAT" , default_value_t) ]
62+ #[ arg ( value_name = "FORMAT" , default_value_t) ]
6363 compression_formats: CompressionFormats ,
6464 }
6565}
0 commit comments