diff --git a/pkg/user/admin/accept.go b/pkg/user/admin/accept.go index d91468e..ca4a6ee 100644 --- a/pkg/user/admin/accept.go +++ b/pkg/user/admin/accept.go @@ -122,15 +122,17 @@ func acceptFlags() []cli.Flag { cmdFlags := []cli.Flag{ &flags.VerboseFlag, &AccountAddressFlag, + &PermissionControllerAddressFlag, &flags.OutputTypeFlag, &flags.OutputFileFlag, + &flags.BroadcastFlag, &flags.NetworkFlag, &flags.EnvironmentFlag, &flags.ETHRpcUrlFlag, - &PermissionControllerAddressFlag, } + cmdFlags = append(cmdFlags, flags.GetSignerFlags()...) sort.Sort(cli.FlagsByName(cmdFlags)) - return append(cmdFlags, flags.GetSignerFlags()...) + return cmdFlags } func generateAcceptAdminWriter( diff --git a/pkg/user/admin/add_pending.go b/pkg/user/admin/add_pending.go index 5c5d4dd..9587775 100644 --- a/pkg/user/admin/add_pending.go +++ b/pkg/user/admin/add_pending.go @@ -151,13 +151,15 @@ func addPendingFlags() []cli.Flag { &flags.VerboseFlag, &AccountAddressFlag, &AdminAddressFlag, + &PermissionControllerAddressFlag, &flags.OutputTypeFlag, &flags.OutputFileFlag, + &flags.BroadcastFlag, &flags.NetworkFlag, &flags.EnvironmentFlag, &flags.ETHRpcUrlFlag, - &PermissionControllerAddressFlag, } + cmdFlags = append(cmdFlags, flags.GetSignerFlags()...) sort.Sort(cli.FlagsByName(cmdFlags)) - return append(cmdFlags, flags.GetSignerFlags()...) + return cmdFlags } diff --git a/pkg/user/admin/is_admin.go b/pkg/user/admin/is_admin.go index e29ca22..05a2aac 100644 --- a/pkg/user/admin/is_admin.go +++ b/pkg/user/admin/is_admin.go @@ -134,8 +134,6 @@ func IsAdminFlags() []cli.Flag { &flags.VerboseFlag, &AccountAddressFlag, &CallerAddressFlag, - &flags.OutputTypeFlag, - &flags.OutputFileFlag, &PermissionControllerAddressFlag, &flags.NetworkFlag, &flags.EnvironmentFlag, diff --git a/pkg/user/admin/is_pending.go b/pkg/user/admin/is_pending.go index 3c224c6..511bed0 100644 --- a/pkg/user/admin/is_pending.go +++ b/pkg/user/admin/is_pending.go @@ -142,8 +142,6 @@ func isPendingAdminFlags() []cli.Flag { &flags.VerboseFlag, &AccountAddressFlag, &PendingAdminAddressFlag, - &flags.OutputTypeFlag, - &flags.OutputFileFlag, &PermissionControllerAddressFlag, &flags.NetworkFlag, &flags.EnvironmentFlag, diff --git a/pkg/user/admin/list.go b/pkg/user/admin/list.go index c442386..5169b4f 100644 --- a/pkg/user/admin/list.go +++ b/pkg/user/admin/list.go @@ -134,8 +134,6 @@ func listAdminFlags() []cli.Flag { cmdFlags := []cli.Flag{ &flags.VerboseFlag, &AccountAddressFlag, - &flags.OutputFileFlag, - &flags.OutputTypeFlag, &PermissionControllerAddressFlag, &flags.NetworkFlag, &flags.EnvironmentFlag, diff --git a/pkg/user/admin/list_pending.go b/pkg/user/admin/list_pending.go index bf1b60a..893d76d 100644 --- a/pkg/user/admin/list_pending.go +++ b/pkg/user/admin/list_pending.go @@ -142,8 +142,6 @@ func listPendingAdminsFlags() []cli.Flag { cmdFlags := []cli.Flag{ &flags.VerboseFlag, &AccountAddressFlag, - &flags.OutputTypeFlag, - &flags.OutputFileFlag, &PermissionControllerAddressFlag, &flags.NetworkFlag, &flags.EnvironmentFlag, diff --git a/pkg/user/admin/remove.go b/pkg/user/admin/remove.go index 4c0cd96..69c063e 100644 --- a/pkg/user/admin/remove.go +++ b/pkg/user/admin/remove.go @@ -151,13 +151,15 @@ func removeFlags() []cli.Flag { &flags.VerboseFlag, &AccountAddressFlag, &AdminAddressFlag, + &PermissionControllerAddressFlag, &flags.OutputTypeFlag, &flags.OutputFileFlag, + &flags.BroadcastFlag, &flags.NetworkFlag, &flags.EnvironmentFlag, &flags.ETHRpcUrlFlag, - &PermissionControllerAddressFlag, } + cmdFlags = append(cmdFlags, flags.GetSignerFlags()...) sort.Sort(cli.FlagsByName(cmdFlags)) - return append(cmdFlags, flags.GetSignerFlags()...) + return cmdFlags } diff --git a/pkg/user/admin/remove_pending.go b/pkg/user/admin/remove_pending.go index d940102..b70edd2 100644 --- a/pkg/user/admin/remove_pending.go +++ b/pkg/user/admin/remove_pending.go @@ -153,13 +153,15 @@ func removePendingAdminFlags() []cli.Flag { &flags.VerboseFlag, &AccountAddressFlag, &AdminAddressFlag, + &PermissionControllerAddressFlag, + &flags.BroadcastFlag, &flags.OutputTypeFlag, &flags.OutputFileFlag, &flags.NetworkFlag, &flags.EnvironmentFlag, &flags.ETHRpcUrlFlag, - &PermissionControllerAddressFlag, } + cmdFlags = append(cmdFlags, flags.GetSignerFlags()...) sort.Sort(cli.FlagsByName(cmdFlags)) - return append(cmdFlags, flags.GetSignerFlags()...) + return cmdFlags } diff --git a/pkg/user/appointee/batch_set.go b/pkg/user/appointee/batch_set.go index cfd504f..0861807 100644 --- a/pkg/user/appointee/batch_set.go +++ b/pkg/user/appointee/batch_set.go @@ -27,7 +27,14 @@ func batchSetFlags() []cli.Flag { cmdFlags := []cli.Flag{ &flags.VerboseFlag, &BatchSetFileFlag, + // TODO: any other flags related to command inputs. + &PermissionControllerAddressFlag, + &flags.NetworkFlag, + &flags.EnvironmentFlag, + &flags.ETHRpcUrlFlag, + &flags.BroadcastFlag, } + cmdFlags = append(cmdFlags, flags.GetSignerFlags()...) sort.Sort(cli.FlagsByName(cmdFlags)) - return append(cmdFlags, flags.GetSignerFlags()...) + return cmdFlags } diff --git a/pkg/user/appointee/list.go b/pkg/user/appointee/list.go index c348741..b625871 100644 --- a/pkg/user/appointee/list.go +++ b/pkg/user/appointee/list.go @@ -152,6 +152,7 @@ func listFlags() []cli.Flag { &AccountAddressFlag, &TargetAddressFlag, &SelectorFlag, + &PermissionControllerAddressFlag, &flags.NetworkFlag, &flags.EnvironmentFlag, &flags.ETHRpcUrlFlag, diff --git a/pkg/user/appointee/list_permissions.go b/pkg/user/appointee/list_permissions.go index bffcee5..885d9a6 100644 --- a/pkg/user/appointee/list_permissions.go +++ b/pkg/user/appointee/list_permissions.go @@ -151,6 +151,7 @@ func listPermissionFlags() []cli.Flag { &flags.VerboseFlag, &AccountAddressFlag, &AppointeeAddressFlag, + &PermissionControllerAddressFlag, &flags.NetworkFlag, &flags.EnvironmentFlag, &flags.ETHRpcUrlFlag, diff --git a/pkg/user/appointee/remove.go b/pkg/user/appointee/remove.go index 0026a3e..b052019 100644 --- a/pkg/user/appointee/remove.go +++ b/pkg/user/appointee/remove.go @@ -165,10 +165,13 @@ func removeCommandFlags() []cli.Flag { &AppointeeAddressFlag, &TargetAddressFlag, &SelectorFlag, + &PermissionControllerAddressFlag, &flags.NetworkFlag, &flags.EnvironmentFlag, &flags.ETHRpcUrlFlag, + &flags.BroadcastFlag, } + cmdFlags = append(cmdFlags, flags.GetSignerFlags()...) sort.Sort(cli.FlagsByName(cmdFlags)) - return append(cmdFlags, flags.GetSignerFlags()...) + return cmdFlags } diff --git a/pkg/user/appointee/set.go b/pkg/user/appointee/set.go index 5a1de8f..fd715ec 100644 --- a/pkg/user/appointee/set.go +++ b/pkg/user/appointee/set.go @@ -165,10 +165,13 @@ func setCommandFlags() []cli.Flag { &AppointeeAddressFlag, &TargetAddressFlag, &SelectorFlag, + &PermissionControllerAddressFlag, &flags.NetworkFlag, &flags.EnvironmentFlag, &flags.ETHRpcUrlFlag, + &flags.BroadcastFlag, } + cmdFlags = append(cmdFlags, flags.GetSignerFlags()...) sort.Sort(cli.FlagsByName(cmdFlags)) - return append(cmdFlags, flags.GetSignerFlags()...) + return cmdFlags }