Bugfix: Remove required flag constraint
authorMikael Berthe <mikael@lilotux.net>
Wed, 21 Mar 2018 23:53:59 +0100
changeset 215 b0bc0a131b59
parent 214 78fe649d7fc9
child 216 3e017cfad3cc
Bugfix: Remove required flag constraint The post subcommand does not require a status ID.
cmd/status.go
--- a/cmd/status.go	Wed Mar 21 22:47:40 2018 +0100
+++ b/cmd/status.go	Wed Mar 21 23:53:59 2018 +0100
@@ -55,8 +55,6 @@
 	//statusCmd.PersistentFlags().Int64Var(&statusOpts.maxID, "max-id", 0, "Request IDs less (or equal) than a value")
 	statusCmd.PersistentFlags().BoolVar(&statusOpts.all, "all", false, "Fetch all results (for reblogged-by/favourited-by)")
 
-	statusCmd.MarkPersistentFlagRequired("status-id")
-
 	// Subcommand flags
 	statusReblogSubcommand.Flags().BoolVar(&statusOpts.unset, "unset", false, "Unreblog the status")
 	statusFavouriteSubcommand.Flags().BoolVar(&statusOpts.unset, "unset", false, "Remove the status from the favourites")