diff --git a/cmd/climc/shell/meter/bill_balances.go b/cmd/climc/shell/meter/bill_balances.go index ba79cf20f0..c554e9f899 100644 --- a/cmd/climc/shell/meter/bill_balances.go +++ b/cmd/climc/shell/meter/bill_balances.go @@ -26,7 +26,7 @@ func init() { type BillBalanceListOptions struct { options.BaseListOptions - ACCOUNTID string `help:"accountId of the BillBalance"` + ACCOUNTID string `help:"accountId of the BillBalance" metavar:"accountList|account_id"` } R(&BillBalanceListOptions{}, "billbalance-list", "List all BillBalances ", func(s *mcclient.ClientSession, args *BillBalanceListOptions) error { var params *jsonutils.JSONDict diff --git a/cmd/climc/shell/meter/bill_tasks.go b/cmd/climc/shell/meter/bill_tasks.go index 8166d95794..336368b3db 100644 --- a/cmd/climc/shell/meter/bill_tasks.go +++ b/cmd/climc/shell/meter/bill_tasks.go @@ -19,15 +19,15 @@ import ( "yunion.io/x/onecloud/pkg/mcclient" "yunion.io/x/onecloud/pkg/mcclient/modules" - "yunion.io/x/onecloud/pkg/mcclient/options" ) func init() { type BillTasksCreateOptions struct { - options.BaseListOptions + // options.BaseListOptions CloudaccountId string `help:"cloudaccount Id" required:"true"` StartDay int `help:"start day of billing cycle, example: 20060102"` EndDay int `help:"end day of billing cycle, example: 20060102"` + TaskType string `help:"task type" choices:"bill_remove|bill_pulling"` } R(&BillTasksCreateOptions{}, "bill-tasks-create", "create bill task", func(s *mcclient.ClientSession, args *BillTasksCreateOptions) error {