@@ -115,6 +115,9 @@ async function tdf3EncryptParamsFor(argv: Partial<mainArgs>): Promise<EncryptPar
115
115
if ( argv . usersWithAccess ?. length ) {
116
116
c . setUsersWithAccess ( argv . usersWithAccess . split ( ',' ) ) ;
117
117
}
118
+ if ( argv . mimeType ?. length ) {
119
+ c . setMimeType ( argv . mimeType ) ;
120
+ }
118
121
// use offline mode, we do not have upsert for v2
119
122
c . setOffline ( ) ;
120
123
// FIXME TODO must call file.close() after we are done
@@ -232,19 +235,25 @@ export const handleArgs = (args: string[]) => {
232
235
. options ( {
233
236
usersWithAccess : {
234
237
alias : 'users-with-access' ,
235
- group : 'Policy Options' ,
238
+ group : 'Encrypt Options' ,
236
239
desc : 'Add users to the policy' ,
237
240
type : 'string' ,
238
241
default : '' ,
239
242
validate : ( users : string ) => users . split ( ',' ) ,
240
243
} ,
241
244
attributes : {
242
- group : 'Policy Options' ,
245
+ group : 'Encrypt Options' ,
243
246
desc : 'Data attributes for the policy' ,
244
247
type : 'string' ,
245
248
default : '' ,
246
249
validate : ( attributes : string ) => attributes . split ( ',' ) ,
247
250
} ,
251
+ mimeType : {
252
+ group : 'Encrypt Options' ,
253
+ desc : 'Mime type for the plain text file (only supported for ztdf)' ,
254
+ type : 'string' ,
255
+ default : '' ,
256
+ } ,
248
257
} )
249
258
250
259
// COMMANDS
0 commit comments